feat(engine262): add verify-ask262 script and relocate verify‑ask262‑debug

- Moved `verify-ask262-debug.mts` from `scripts` to `lib-src/node`.
- Updated import to use `#self` alias.
- Added npm script `verify-ask262` to run the verification script.
- Adjusted `scripts/tsconfig.json` to include the new file location.
This commit is contained in:
2026-04-08 14:25:59 +05:30
parent f998ebc236
commit 72138aa965
3 changed files with 3 additions and 2 deletions
@@ -6,7 +6,7 @@
import {
ask262Debug, Agent, ManagedRealm, setSurroundingAgent,
OrdinaryObjectCreate, CreateBuiltinFunction, CreateDataProperty, Value, skipDebugger,
} from '../lib/engine262';
} from '#self';
console.log('=== ask262Debug Verification ===\n');
+1
View File
@@ -47,6 +47,7 @@
},
"scripts": {
"start": "node --enable-source-maps --disable-warning=ExperimentalWarning --experimental-strip-types ./lib-src/node/bin.mts",
"verify-ask262": "node --enable-source-maps --disable-warning=ExperimentalWarning --experimental-strip-types ./lib-src/node/verify-ask262-debug.mts",
"inspector": "node ./website/server.mjs -c-1",
"lint": "cross-env NODE_OPTIONS=\"--enable-source-maps --disable-warning=ExperimentalWarning --experimental-strip-types\" eslint test/ src/ bin/ lib-src/ scripts/ --cache --ext=js,mjs,mts",
"lint:fix": "npm run lint -- --fix",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"extends": "../tsconfig.base.json",
"include": ["."],
"include": [".", "../lib-src/node/verify-ask262-debug.mts"],
"compilerOptions": {
"noEmit": true,
"erasableSyntaxOnly": true,