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 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
@@ -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.34.16+1445b77fd",
4
+ "version": "0.34.18+95006009d",
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.34.16+1445b77fd';
3
+ globalThis.version = '0.34.18+95006009d';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {
package/r.js DELETED
@@ -1,4 +0,0 @@
1
- class Foo {}
2
- class Bar extends Foo {}
3
-
4
- let obj = new Bar();