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.
- package/compiler/2c.js +1 -3
- 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 _
|
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