porffor 0.14.0-1169185ff → 0.14.0-1d65770e0

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.
Files changed (2) hide show
  1. package/compiler/2c.js +1 -3
  2. package/package.json +1 -1
package/compiler/2c.js CHANGED
@@ -207,8 +207,6 @@ export default ({ funcs, globals, tags, data, exceptions, pages }) => {
207
207
  depth = 1;
208
208
  brDepth = 0;
209
209
 
210
- let retTmpId = 0;
211
-
212
210
  const invLocals = inv(f.locals, x => x.idx);
213
211
 
214
212
  for (const x in invLocals) {
@@ -539,7 +537,7 @@ _time_out = _time.tv_nsec / 1000000. + _time.tv_sec * 1000.;`);
539
537
  if (func.internal) {
540
538
  vals.push(`${sanitize(func.name)}(${args.join(', ')})`);
541
539
  } else {
542
- line(`const struct ReturnValue _${retTmpId++} = ${sanitize(func.name)}(${args.join(', ')})`);
540
+ line(`const struct ReturnValue _ = ${sanitize(func.name)}(${args.join(', ')})`);
543
541
  vals.push(`_.value`);
544
542
  vals.push(`_.type`);
545
543
  }
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.14.0-1169185ff",
4
+ "version": "0.14.0-1d65770e0",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {