porffor 0.48.1 → 0.48.2
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/builtins_precompiled.js +56 -56
- package/compiler/codegen.js +5 -1
- package/package.json +1 -1
- package/runner/index.js +1 -1
package/compiler/codegen.js
CHANGED
@@ -1608,6 +1608,10 @@ const getNodeType = (scope, node) => {
|
|
1608
1608
|
}
|
1609
1609
|
}
|
1610
1610
|
|
1611
|
+
if (node.type === 'SequenceExpression') {
|
1612
|
+
return getNodeType(scope, node.expressions.at(-1));
|
1613
|
+
}
|
1614
|
+
|
1611
1615
|
return getLastType(scope);
|
1612
1616
|
})();
|
1613
1617
|
|
@@ -3050,7 +3054,7 @@ const generateVarDstr = (scope, kind, pattern, init, defaultValue, global) => {
|
|
3050
3054
|
|
3051
3055
|
if (defaultValue && isFuncType(defaultValue.type)) {
|
3052
3056
|
// set id as name, but do not use it as it is only default value
|
3053
|
-
|
3057
|
+
setDefaultFuncName(defaultValue, name);
|
3054
3058
|
}
|
3055
3059
|
|
3056
3060
|
if (topLevel && Object.hasOwn(builtinVars, name)) {
|
package/package.json
CHANGED