feat(core): Integrate Rolldown as optional bundler, migrate filesystem to smartfs, and update bundler/tooling

This commit is contained in:
2025-11-23 13:12:17 +00:00
parent 1bb05bfd2e
commit cd53bdb6f4
32 changed files with 3152 additions and 5142 deletions

View File

@@ -7,7 +7,7 @@ function sealed(constructor: Function) {
@sealed
class TestClass {
name = 'test';
modify() {
this.name = 'modified';
}
@@ -31,11 +31,14 @@ try {
// Test that we can't add to prototype
try {
(TestClass.prototype as any).newMethod = function() {};
(TestClass.prototype as any).newMethod = function () {};
console.log('Prototype is NOT sealed (unexpected)');
} catch (e) {
console.log('Prototype is sealed (expected)');
}
console.log('Is TestClass sealed?', Object.isSealed(TestClass));
console.log('Is TestClass.prototype sealed?', Object.isSealed(TestClass.prototype));
console.log(
'Is TestClass.prototype sealed?',
Object.isSealed(TestClass.prototype),
);