Skip to content

Commit

Permalink
Support node.js 21.x
Browse files Browse the repository at this point in the history
PR-URL: #118
  • Loading branch information
tshemsedinov committed Oct 25, 2023
1 parent f2e0a2a commit 7b0236d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
node:
- 18
- 20
- 21
os:
- ubuntu-latest
- windows-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"files": ["dist/", "metavm.d.ts"],
"engines": {
"node": "18 || 20"
"node": "18 || 20 || 21"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion test/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ test('Check native fetch', async () => {
const ms = metavm.createScript('Example', src, { context });
const proto = Object.getPrototypeOf(ms.exports);
assert.ok(proto);
assert.strictEqual(proto.constructor.name, 'AsyncFunction');
assert.ok(proto.constructor.name.endsWith('Function'));
});

test('ECMAScript modules', async () => {
Expand Down

0 comments on commit 7b0236d

Please sign in to comment.