porffor 0.34.16 → 0.34.18
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 +6 -0
- package/package.json +1 -1
- package/runner/index.js +1 -1
- package/r.js +0 -4
package/compiler/2c.js
CHANGED
@@ -343,6 +343,12 @@ export default ({ funcs, globals, tags, data, exceptions, pages }) => {
|
|
343
343
|
if (f.name === 'main') out += `int main(${prependMain.has('argv') ? 'int argc, char* argv[]' : ''}) {\n`;
|
344
344
|
else out += `${!typedReturns ? (returns ? CValtype[f.returns[0]] : 'void') : 'struct ReturnValue'} ${shouldInline ? 'inline ' : ''}${sanitize(f.name)}(${f.params.map((x, i) => `${CValtype[x]} ${invLocals[i]}`).join(', ')}) {\n`;
|
345
345
|
|
346
|
+
if (f.name === '__Porffor_promise_runJobs') {
|
347
|
+
out += '}';
|
348
|
+
globalThis.out = globalThis.out + out;
|
349
|
+
return;
|
350
|
+
}
|
351
|
+
|
346
352
|
if (f.name === 'main') {
|
347
353
|
out += ' ' + [...prependMain.values()].join('\n ');
|
348
354
|
if (prependMain.size > 0) out += '\n\n';
|
package/package.json
CHANGED
package/runner/index.js
CHANGED
package/r.js
DELETED