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.
@@ -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
- if (!defaultValue.id) setDefaultFuncName(defaultValue, name);
3057
+ setDefaultFuncName(defaultValue, name);
3054
3058
  }
3055
3059
 
3056
3060
  if (topLevel && Object.hasOwn(builtinVars, name)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.48.1",
4
+ "version": "0.48.2",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.48.1';
3
+ globalThis.version = '0.48.2';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {