From 72138aa96536ae69419415a3bbd8801740e9e0b2 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Wed, 8 Apr 2026 14:25:59 +0530 Subject: [PATCH] =?UTF-8?q?feat(engine262):=20add=20verify-ask262=20script?= =?UTF-8?q?=20and=20relocate=20verify=E2=80=91ask262=E2=80=91debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. --- engine262/{scripts => lib-src/node}/verify-ask262-debug.mts | 2 +- engine262/package.json | 1 + engine262/scripts/tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename engine262/{scripts => lib-src/node}/verify-ask262-debug.mts (98%) 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,