porffor 0.56.3 → 0.56.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/2c.js +31 -17
- package/compiler/builtins/array.ts +39 -0
- package/compiler/builtins/{z_map.ts → map.ts} +26 -29
- package/compiler/builtins/porffor.d.ts +1 -0
- package/compiler/builtins/set.ts +8 -92
- package/compiler/builtins/{z_weakmap.ts → weakmap.ts} +5 -9
- package/compiler/builtins/{z_weakset.ts → weakset.ts} +3 -7
- package/compiler/builtins_precompiled.js +527 -531
- package/compiler/codegen.js +6 -0
- package/package.json +1 -1
- package/r.cjs +13 -11
- package/runner/index.js +1 -1
- package/foo +0 -0
package/compiler/codegen.js
CHANGED
@@ -6320,6 +6320,12 @@ const generateTaggedTemplate = (scope, decl, global = false, name = undefined, v
|
|
6320
6320
|
return out;
|
6321
6321
|
},
|
6322
6322
|
|
6323
|
+
__Porffor_c: str => {
|
6324
|
+
return [
|
6325
|
+
[ null, 'c', str ]
|
6326
|
+
];
|
6327
|
+
},
|
6328
|
+
|
6323
6329
|
__Porffor_bs: str => makeString(scope, str, true),
|
6324
6330
|
__Porffor_s: str => makeString(scope, str, false)
|
6325
6331
|
};
|
package/package.json
CHANGED
package/r.cjs
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
// static #method = () => 1;
|
3
|
-
static #method() {
|
4
|
-
return 'Test262';
|
5
|
-
}
|
1
|
+
Porffor.printString(TypeError('foo').toString());
|
6
2
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
3
|
+
// class C {
|
4
|
+
// // static #method = () => 1;
|
5
|
+
// static #method() {
|
6
|
+
// return 'Test262';
|
7
|
+
// }
|
8
|
+
|
9
|
+
// static getPrivateMethod() {
|
10
|
+
// this.#method = () => 2;
|
11
|
+
// return this.#method();
|
12
|
+
// }
|
13
|
+
// }
|
12
14
|
|
13
|
-
console.log(C.getPrivateMethod())
|
15
|
+
// console.log(C.getPrivateMethod())
|
14
16
|
|
15
17
|
// var __assert_throws = (expectedErrorConstructor, func) => {
|
16
18
|
// if (typeof func !== 'function') {
|
package/runner/index.js
CHANGED
package/foo
DELETED
File without changes
|