diff --git a/engine262/scripts/verify-ask262-debug.mts b/engine262/lib-src/node/verify-ask262-debug.mts similarity index 98% rename from engine262/scripts/verify-ask262-debug.mts rename to engine262/lib-src/node/verify-ask262-debug.mts index be6b43d..d25c3f1 100644 --- a/engine262/scripts/verify-ask262-debug.mts +++ b/engine262/lib-src/node/verify-ask262-debug.mts @@ -6,7 +6,7 @@ import { ask262Debug, Agent, ManagedRealm, setSurroundingAgent, OrdinaryObjectCreate, CreateBuiltinFunction, CreateDataProperty, Value, skipDebugger, -} from '../lib/engine262'; +} from '#self'; console.log('=== ask262Debug Verification ===\n'); diff --git a/engine262/package.json b/engine262/package.json index fa5ac63..29bee59 100644 --- a/engine262/package.json +++ b/engine262/package.json @@ -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", diff --git a/engine262/scripts/tsconfig.json b/engine262/scripts/tsconfig.json index 9979398..dccdaa3 100644 --- a/engine262/scripts/tsconfig.json +++ b/engine262/scripts/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../tsconfig.base.json", - "include": ["."], + "include": [".", "../lib-src/node/verify-ask262-debug.mts"], "compilerOptions": { "noEmit": true, "erasableSyntaxOnly": true,