porffor 0.59.7 → 0.59.8

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.
@@ -1464,7 +1464,7 @@ const asmFuncToAsm = (scope, func, extra) => func(scope, {
1464
1464
 
1465
1465
  const asmFunc = (name, func) => {
1466
1466
  func = { ...func };
1467
- let { wasm, params, locals: localTypes, localNames = [], table, usesTag, returnTypes, returnType } = func;
1467
+ let { wasm, params = [], locals: localTypes = [], localNames = [], table, usesTag, returnTypes, returnType } = func;
1468
1468
  if (wasm == null) { // called with no built-in
1469
1469
  log.warning('codegen', `${name} has no built-in!`);
1470
1470
  wasm = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "An ahead-of-time JavaScript compiler",
4
- "version": "0.59.7",
4
+ "version": "0.59.8",
5
5
  "author": "Oliver Medhurst <honk@goose.icu>",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runtime/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.59.7';
3
+ globalThis.version = '0.59.8';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {
package/AGENT.md DELETED
@@ -1,20 +0,0 @@
1
- you are an assistant coder for Porffor - an early javascript and typescript to webassembly and native ahead-of-time compiler. the codebase is written in js and ts.
2
-
3
- - built-ins apis (Date, String.prototype, etc) are written in ts inside `compiler/builtins`
4
- - once you update a file inside that directory, you MUST run `./porf precompile` to compile to make your changes effective
5
- - test your work using the test262 tools available, iterate independently but do not get stuck on one chain of thought or approach. paths for test262 tools should be relative to the 'test262/test' directory (e.g., 'built-ins/RegExp' NOT 'test262/test/built-ins/RegExp').
6
- - to get an overview of the most failing directories, use the command: `node test262/fails.cjs`
7
- - to just evaluate code in the engine, use the command: `./porf -p "..."`
8
- - after finishing, check if your work/diff could be simplified
9
- - always use single quotes (unless double is required)
10
- - 2-space indentation, LF line endings, no trailing whitespace
11
- - built-in APIs in `compiler/builtins/` written in TypeScript
12
- - inline code in built-ins, avoid helper functions
13
- - use semicolons
14
- - do not use trailing commas
15
- - use const/let, avoid var
16
- - follow existing naming: camelCase for variables, PascalCase for types
17
-
18
- memories:
19
- - The user prefers that prototype functions not have explicit return types in this codebase.
20
- - The user prefers not to use global variables in built-in functions.