Skip to content

Commit 0681bff

Browse files
committed
builtins/array: tweak constructor
1 parent 93f7f20 commit 0681bff

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

compiler/builtins/array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Array = function (...args: any[]): any[] {
2121
)) throw new RangeError('Invalid array length');
2222

2323
const out: any[] = Porffor.allocate();
24-
out.length = arg;
24+
out.length = n;
2525
return out;
2626
}
2727

compiler/builtins_precompiled.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@honk/porffor",
3-
"version": "0.60.30",
3+
"version": "0.60.31",
44
"exports": "./compiler/wrap.js",
55
"publish": {
66
"exclude": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "porffor",
33
"description": "An ahead-of-time JavaScript compiler",
4-
"version": "0.60.30",
4+
"version": "0.60.31",
55
"author": "Oliver Medhurst <honk@goose.icu>",
66
"license": "MIT",
77
"scripts": {},

runtime/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
import fs from 'node:fs';
3-
globalThis.version = '0.60.30';
3+
globalThis.version = '0.60.31';
44

55
// deno compat
66
if (typeof process === 'undefined' && typeof Deno !== 'undefined') {

test262/history.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)