porffor 0.37.29 → 0.37.31
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/assemble.js +1 -1
- package/compiler/builtins/error.js +1 -1
- package/compiler/builtins_precompiled.js +43 -43
- package/compiler/codegen.js +4 -3
- package/compiler/index.js +9 -7
- package/compiler/parse.js +4 -4
- package/compiler/pgo.js +2 -2
- package/compiler/precompile.js +2 -2
- package/compiler/wrap.js +4 -6
- package/package.json +1 -1
- package/runner/debug.js +1 -1
- package/runner/index.js +2 -2
- package/runner/profile.js +1 -1
- package/runner/repl.js +1 -1
- package/runner/compare.js +0 -34
- package/runner/sizes.js +0 -38
package/compiler/assemble.js
CHANGED
@@ -47,7 +47,7 @@ const encodeNames = funcs => {
|
|
47
47
|
];
|
48
48
|
};
|
49
49
|
|
50
|
-
export default (funcs, globals, tags, pages, data,
|
50
|
+
export default (funcs, globals, tags, pages, data, noTreeshake = false) => {
|
51
51
|
const types = [], typeCache = {};
|
52
52
|
|
53
53
|
const optLevel = parseInt(process.argv.find(x => x.startsWith('-O'))?.[2] ?? 1);
|
@@ -19,7 +19,7 @@ export default () => {
|
|
19
19
|
return out;
|
20
20
|
};
|
21
21
|
|
22
|
-
export const __${name}_prototype_toString = (_this: ${name}) => {
|
22
|
+
export const __${name.startsWith('__') ? name.slice(2) : name}_prototype_toString = (_this: ${name}) => {
|
23
23
|
const obj: object = _this;
|
24
24
|
|
25
25
|
const message: any = obj.message;
|