porffor 0.34.4 → 0.34.5

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.
@@ -5812,14 +5812,16 @@ const generateClass = (scope, decl) => {
5812
5812
  optional: false
5813
5813
  };
5814
5814
 
5815
- const constr = body.find(x => x.kind === 'constructor')?.value ?? {
5816
- type: 'FunctionExpression',
5815
+ const constr = {
5816
+ ...(body.find(x => x.kind === 'constructor')?.value ?? {
5817
+ type: 'FunctionExpression',
5818
+ params: [],
5819
+ body: {
5820
+ type: 'BlockStatement',
5821
+ body: []
5822
+ }
5823
+ }),
5817
5824
  id: root,
5818
- params: [],
5819
- body: {
5820
- type: 'BlockStatement',
5821
- body: []
5822
- }
5823
5825
  };
5824
5826
 
5825
5827
  const [ func, out ] = generateFunc(scope, {
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.4+b34a8a84f",
4
+ "version": "0.34.5+b927e0e77",
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.4+b34a8a84f';
3
+ globalThis.version = '0.34.5+b927e0e77';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {