diff --git a/.eslintrc.cjs b/.eslintrc.cjs index bf3ffaf..67a4c64 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -10,10 +10,5 @@ module.exports = { }, ], }, - ignorePatterns: [ - "src/core/instrument.ts", - "src/utils/import.js", - "src/generator/html-generator/resource/*", - "third_party/*", - ], + ignorePatterns: ["src/core/instrument.ts", "src/utils/import.js", "resource/*", "third_party/*"], }; diff --git a/.prettierignore b/.prettierignore index ba0b250..6ea6ca1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,4 +5,4 @@ /transform/*.mjs /tests/ts/fixture /third_party -/tests/cpp/lit/expectInstrument/expect.test.expect.json +/tests/cpp/lit/**/*.json diff --git a/package-lock.json b/package-lock.json index 63d8ebc..d23ee61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,6 @@ "devDependencies": { "@schleifner/eslint-config-base": "^1.0.2", "@schleifner/prettier-config": "^1.0.0", - "@sprout2000/esbuild-copy-plugin": "^1.1.8", "@types/cross-spawn": "^6.0.2", "@types/fs-extra": "^9.0.13", "@types/glob": "^7.2.0", @@ -33,7 +32,6 @@ "@types/node": "^20.9.1", "assemblyscript-prettier": "^3.0.1", "cross-env": "^7.0.3", - "esbuild": "^0.17.19", "jest": "^29.5.0", "prettier": "^3.0.0", "ts-jest": "^29.1.0", @@ -732,358 +730,6 @@ "node": ">=16" } }, - "node_modules/@esbuild/android-arm": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz", - "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz", - "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz", - "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz", - "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz", - "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz", - "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz", - "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz", - "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz", - "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz", - "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz", - "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz", - "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz", - "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz", - "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz", - "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz", - "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz", - "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz", - "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz", - "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz", - "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz", - "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz", - "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -1902,14 +1548,14 @@ "dev": true }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.4.tgz", - "integrity": "sha512-Oud2QPM5dHviZNn4y/WhhYKSXksv+1xLEIsNrAbGcFzUN3ubqWRFT5gwPchNc5NuzILOU4tPBDTZ4VwhL8Y7cw==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" @@ -1934,14 +1580,14 @@ } }, "node_modules/@jridgewell/source-map": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", "dev": true, "peer": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" } }, "node_modules/@jridgewell/sourcemap-codec": { @@ -1951,9 +1597,9 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.23", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.23.tgz", - "integrity": "sha512-9/4foRoUKp8s96tSkh8DlAAc5A0Ty8vLXld+l9gjKKY6ckwI8G15f0hskGmuLZu78ZlGa1vtsfOa+lnB4vG6Jg==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -2071,15 +1717,6 @@ "@sinonjs/commons": "^3.0.0" } }, - "node_modules/@sprout2000/esbuild-copy-plugin": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/@sprout2000/esbuild-copy-plugin/-/esbuild-copy-plugin-1.1.13.tgz", - "integrity": "sha512-eqX/suAZ+fNVUg25vD27GkgQ9B/JqWmDNA44fegfDZzlXnqZjN4GEQnwqEvddnqpTzwufQtm8jgKC3x4Z25ynQ==", - "dev": true, - "engines": { - "node": ">=16.7" - } - }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", @@ -2177,9 +1814,9 @@ } }, "node_modules/@types/estree": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", "dev": true, "peer": true }, @@ -2513,73 +2150,73 @@ "peer": true }, "node_modules/@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", "dev": true, "peer": true, "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" } }, "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", "dev": true, "peer": true }, "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", "dev": true, "peer": true }, "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", "dev": true, "peer": true }, "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", "dev": true, "peer": true, "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", "dev": true, "peer": true }, "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", "dev": true, "peer": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" } }, "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", "dev": true, "peer": true, "dependencies": { @@ -2587,9 +2224,9 @@ } }, "node_modules/@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", "dev": true, "peer": true, "dependencies": { @@ -2597,79 +2234,79 @@ } }, "node_modules/@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", "dev": true, "peer": true }, "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", "dev": true, "peer": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" } }, "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", "dev": true, "peer": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" } }, "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", "dev": true, "peer": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" } }, "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", "dev": true, "peer": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" } }, "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", "dev": true, "peer": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" } }, @@ -2688,9 +2325,9 @@ "peer": true }, "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -2699,16 +2336,6 @@ "node": ">=0.4.0" } }, - "node_modules/acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "dev": true, - "peer": true, - "peerDependencies": { - "acorn": "^8" - } - }, "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", @@ -2745,16 +2372,48 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", "dev": true, "peer": true, + "dependencies": { + "ajv": "^8.0.0" + }, "peerDependencies": { - "ajv": "^6.9.1" + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } } }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "peer": true + }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -3225,9 +2884,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", - "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", "dev": true, "funding": [ { @@ -3244,10 +2903,10 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001587", - "electron-to-chromium": "^1.4.668", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -3335,9 +2994,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001591", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001591.tgz", - "integrity": "sha512-PCzRMei/vXjJyL5mJtzNiUCKP59dm8Apqc3PH8gJkMnMXZGox93RbE76jHsmLwmIo6/3nsYIpJtx0O7u5PqFuQ==", + "version": "1.0.30001700", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001700.tgz", + "integrity": "sha512-2S6XIXwaE7K7erT8dY+kLQcpa5ms63XlRkMkReXjle+kf6c5g38vyMl+Z5y8dSxOFDhcFe+nxnn261PLxBSQsQ==", "dev": true, "funding": [ { @@ -3668,9 +3327,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -3822,9 +3481,9 @@ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" }, "node_modules/electron-to-chromium": { - "version": "1.4.687", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.687.tgz", - "integrity": "sha512-Ic85cOuXSP6h7KM0AIJ2hpJ98Bo4hyTUjc4yjMbkvD+8yTxEhfK9+8exT2KKYsSjnCn2tGsKVSZwE7ZgTORQCw==", + "version": "1.5.102", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.102.tgz", + "integrity": "sha512-eHhqaja8tE/FNpIiBrvBjFV/SSKpyWHLvxuR9dPTdo+3V9ppdLmFB7ZZQ98qNovcngPLYIz0oOBF9P0FfZef5Q==", "dev": true }, "node_modules/emittery": { @@ -3845,9 +3504,9 @@ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" }, "node_modules/enhanced-resolve": { - "version": "5.15.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.1.tgz", - "integrity": "sha512-3d3JRbwsCLJsYgvb6NuWEG44jjPSOMuS73L/6+7BZuoKm3W+qXnSoIYVHi8dG7Qcg4inAY4jbzkZ7MnskePeDg==", + "version": "5.18.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz", + "integrity": "sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -4002,47 +3661,10 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/esbuild": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz", - "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==", - "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.17.19", - "@esbuild/android-arm64": "0.17.19", - "@esbuild/android-x64": "0.17.19", - "@esbuild/darwin-arm64": "0.17.19", - "@esbuild/darwin-x64": "0.17.19", - "@esbuild/freebsd-arm64": "0.17.19", - "@esbuild/freebsd-x64": "0.17.19", - "@esbuild/linux-arm": "0.17.19", - "@esbuild/linux-arm64": "0.17.19", - "@esbuild/linux-ia32": "0.17.19", - "@esbuild/linux-loong64": "0.17.19", - "@esbuild/linux-mips64el": "0.17.19", - "@esbuild/linux-ppc64": "0.17.19", - "@esbuild/linux-riscv64": "0.17.19", - "@esbuild/linux-s390x": "0.17.19", - "@esbuild/linux-x64": "0.17.19", - "@esbuild/netbsd-x64": "0.17.19", - "@esbuild/openbsd-x64": "0.17.19", - "@esbuild/sunos-x64": "0.17.19", - "@esbuild/win32-arm64": "0.17.19", - "@esbuild/win32-ia32": "0.17.19", - "@esbuild/win32-x64": "0.17.19" - } - }, "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "engines": { "node": ">=6" @@ -4862,6 +4484,23 @@ "dev": true, "peer": true }, + "node_modules/fast-uri": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", + "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "peer": true + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", @@ -7393,12 +7032,12 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -7510,9 +7149,9 @@ "dev": true }, "node_modules/node-releases": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", "dev": true }, "node_modules/normalize-package-data": { @@ -7827,9 +7466,9 @@ } }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true }, "node_modules/picomatch": { @@ -8249,6 +7888,16 @@ "node": ">=0.10.0" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/resolve": { "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", @@ -8457,15 +8106,16 @@ } }, "node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.0.tgz", + "integrity": "sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g==", "dev": true, "peer": true, "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" }, "engines": { "node": ">= 10.13.0" @@ -8475,6 +8125,43 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/schema-utils/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "peer": true + }, "node_modules/semver": { "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", @@ -8944,9 +8631,9 @@ } }, "node_modules/terser": { - "version": "5.28.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.28.1.tgz", - "integrity": "sha512-wM+bZp54v/E9eRRGXb5ZFDvinrJIOaTapx3WUokyVGZu5ucVCK55zEgGd5Dl2fSr3jUo5sDiERErUWLY6QPFyA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.39.0.tgz", + "integrity": "sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw==", "dev": true, "peer": true, "dependencies": { @@ -8963,17 +8650,17 @@ } }, "node_modules/terser-webpack-plugin": { - "version": "5.3.10", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", - "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", + "version": "5.3.11", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.11.tgz", + "integrity": "sha512-RVCsMfuD0+cTt3EwX8hSl2Ks56EbFHWmhluwcqoPKtBnfjiT6olaq7PRIRfhyU8nnC2MrnDrBLfrD/RGE+cVXQ==", "dev": true, "peer": true, "dependencies": { - "@jridgewell/trace-mapping": "^0.3.20", + "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.26.0" + "schema-utils": "^4.3.0", + "serialize-javascript": "^6.0.2", + "terser": "^5.31.1" }, "engines": { "node": ">= 10.13.0" @@ -9499,9 +9186,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz", + "integrity": "sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==", "dev": true, "funding": [ { @@ -9518,8 +9205,8 @@ } ], "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "escalade": "^3.2.0", + "picocolors": "^1.1.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -9590,9 +9277,9 @@ } }, "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", + "integrity": "sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==", "dev": true, "peer": true, "dependencies": { @@ -9604,35 +9291,34 @@ } }, "node_modules/webpack": { - "version": "5.90.3", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.3.tgz", - "integrity": "sha512-h6uDYlWCctQRuXBs1oYpVe6sFcWedl0dpcVaTf/YF67J9bKvwJajFulMVSYKHrksMB3I/pIagRzDxwxkebuzKA==", + "version": "5.98.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.98.0.tgz", + "integrity": "sha512-UFynvx+gM44Gv9qFgj0acCQK2VE1CtdfwFdimkapco3hlPCJ/zeq73n2yVKimVbtm+TnApIugGhLJnkU6gjYXA==", "dev": true, "peer": true, "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.5", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.21.10", + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.6", + "@webassemblyjs/ast": "^1.14.1", + "@webassemblyjs/wasm-edit": "^1.14.1", + "@webassemblyjs/wasm-parser": "^1.14.1", + "acorn": "^8.14.0", + "browserslist": "^4.24.0", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.15.0", + "enhanced-resolve": "^5.17.1", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", + "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", - "schema-utils": "^3.2.0", + "schema-utils": "^4.3.0", "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.10", - "watchpack": "^2.4.0", + "terser-webpack-plugin": "^5.3.11", + "watchpack": "^2.4.1", "webpack-sources": "^3.2.3" }, "bin": { diff --git a/package.json b/package.json index 496475a..9446056 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "prettier": "@schleifner/prettier-config", "scripts": { - "build": "tsc --build ./transform/tsconfig.json && node ./scripts/esbuild.js", + "build": "node scripts/build_instrumentation.js && tsc --build ./transform/tsconfig.json && tsc --build ./src/tsconfig.json", "test:as": "node bin/as-test.js", "test:ts": "cross-env NODE_OPTIONS=--experimental-vm-modules jest", "test:cpp": "cmake -B build -S . && cmake --build build && build/bin/wasm-instrumentation-test", @@ -38,7 +38,6 @@ "devDependencies": { "@schleifner/eslint-config-base": "^1.0.2", "@schleifner/prettier-config": "^1.0.0", - "@sprout2000/esbuild-copy-plugin": "^1.1.8", "@types/cross-spawn": "^6.0.2", "@types/fs-extra": "^9.0.13", "@types/glob": "^7.2.0", @@ -46,7 +45,6 @@ "@types/node": "^20.9.1", "assemblyscript-prettier": "^3.0.1", "cross-env": "^7.0.3", - "esbuild": "^0.17.19", "jest": "^29.5.0", "prettier": "^3.0.0", "ts-jest": "^29.1.0", @@ -78,6 +76,7 @@ "build_wasm/bin/wasm-instrumentation.js", "docs/**/*", "transform/**/*", + "resource/**/*", "LICENSE", "README.md" ] diff --git a/src/generator/html-generator/resource/base.css b/resource/base.css similarity index 100% rename from src/generator/html-generator/resource/base.css rename to resource/base.css diff --git a/src/generator/html-generator/resource/block-navigation.js b/resource/block-navigation.js similarity index 100% rename from src/generator/html-generator/resource/block-navigation.js rename to resource/block-navigation.js diff --git a/src/generator/html-generator/resource/prettify.css b/resource/prettify.css similarity index 100% rename from src/generator/html-generator/resource/prettify.css rename to resource/prettify.css diff --git a/src/generator/html-generator/resource/prettify.js b/resource/prettify.js similarity index 100% rename from src/generator/html-generator/resource/prettify.js rename to resource/prettify.js diff --git a/src/generator/html-generator/resource/sort-arrow-sprite.png b/resource/sort-arrow-sprite.png similarity index 100% rename from src/generator/html-generator/resource/sort-arrow-sprite.png rename to resource/sort-arrow-sprite.png diff --git a/src/generator/html-generator/resource/sorter.js b/resource/sorter.js similarity index 100% rename from src/generator/html-generator/resource/sorter.js rename to resource/sorter.js diff --git a/scripts/esbuild.js b/scripts/build_instrumentation.js similarity index 60% rename from scripts/esbuild.js rename to scripts/build_instrumentation.js index 55559d1..466f513 100644 --- a/scripts/esbuild.js +++ b/scripts/build_instrumentation.js @@ -1,12 +1,5 @@ -import { resolve } from "path"; -import * as esbuild from "esbuild"; -import { fileURLToPath, URL } from "url"; import { execSync } from "node:child_process"; -import pkg from "@sprout2000/esbuild-copy-plugin"; import { existsSync } from "node:fs"; -const { copyPlugin } = pkg; - -const __dirname = fileURLToPath(new URL(".", import.meta.url)); execSync("tsc --build ./transform/tsconfig.json"); @@ -34,19 +27,3 @@ execSync("cmake --build build_wasm --target wasm-instrumentation", { execSync( "tsc build_wasm/bin/wasm-instrumentation.js --declaration --allowJs --emitDeclarationOnly --outDir build_wasm/bin" ); - -await esbuild.build({ - entryPoints: ["src/index.ts"], - bundle: true, - platform: "node", - format: "esm", - packages: "external", - sourcemap: "both", - outfile: resolve(__dirname, "../dist/index.js"), - plugins: [ - copyPlugin({ - src: "src/generator/html-generator/resource", - dest: resolve(__dirname, "../dist/resource/"), - }), - ], -}); diff --git a/src/core/precompile.ts b/src/core/precompile.ts index 71c39a4..10a7bce 100644 --- a/src/core/precompile.ts +++ b/src/core/precompile.ts @@ -3,20 +3,18 @@ */ import ignore from "ignore"; -import { fileURLToPath, URL } from "node:url"; import { main } from "assemblyscript/asc"; import { join, relative, resolve } from "node:path"; import { getIncludeFiles } from "../utils/pathResolver.js"; import { SourceFunctionInfo, UnittestPackage } from "../interface.js"; +import { projectRoot } from "../utils/projectRoot.js"; const sourceFunctions = new Map(); -const listFunctions = join(fileURLToPath(new URL(".", import.meta.url)), "..", "transform", "listFunctions.mjs"); - export async function precompile( includes: string[], excludes: string[], testcases: string[] | undefined, - transformFunction = listFunctions + transformFunction = join(projectRoot, "transform", "listFunctions.mjs") ): Promise { // if specify testcases, use testcases for unittest // otherwise, get testcases(*.test.ts) in includes directory diff --git a/src/generator/html-generator/index.ts b/src/generator/html-generator/index.ts index c88e21c..7387c1f 100644 --- a/src/generator/html-generator/index.ts +++ b/src/generator/html-generator/index.ts @@ -1,27 +1,25 @@ import { ensureDirSync } from "fs-extra"; -import { fileURLToPath, URL } from "node:url"; import { copyFile, writeFileSync } from "node:fs"; import { basename, dirname, join, relative } from "node:path"; import { generateFolderHtml } from "./genFolder.js"; import { FileCoverageResult } from "../../interface.js"; import { generateCodeHtml } from "./genCode.js"; - -const __dirname = fileURLToPath(new URL(".", import.meta.url)); +import { projectRoot } from "../../utils/projectRoot.js"; const resourceFiles = [ - "resource/base.css", - "resource/block-navigation.js", - "resource/prettify.css", - "resource/prettify.js", - "resource/sort-arrow-sprite.png", - "resource/sorter.js", + "base.css", + "block-navigation.js", + "prettify.css", + "prettify.js", + "sort-arrow-sprite.png", + "sorter.js", ]; export function genHtml(target: string, filesInfos: FileCoverageResult[]) { const resourceFolder = join(target, "resource"); ensureDirSync(resourceFolder); for (const file of resourceFiles) { - copyFile(join(__dirname, file), join(resourceFolder, basename(file)), () => { + copyFile(join(projectRoot, "resource", file), join(resourceFolder, basename(file)), () => { return; }); } diff --git a/src/tsconfig.json b/src/tsconfig.json new file mode 100644 index 0000000..b261c93 --- /dev/null +++ b/src/tsconfig.json @@ -0,0 +1,31 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "NodeNext", + "moduleResolution": "nodenext", + "declaration": true, + "declarationMap": true, + "emitDeclarationOnly": false, + "sourceMap": true, + "outDir": "../dist", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitAny": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "strictBindCallApply": true, + "strictPropertyInitialization": true, + "noImplicitThis": true, + "useUnknownInCatchVariables": true, + "alwaysStrict": true, + "exactOptionalPropertyTypes": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "skipLibCheck": true + }, + "include": ["./**/*.ts"] +} diff --git a/src/utils/projectRoot.ts b/src/utils/projectRoot.ts new file mode 100644 index 0000000..9f9a179 --- /dev/null +++ b/src/utils/projectRoot.ts @@ -0,0 +1,5 @@ +import { join } from "node:path"; +import { fileURLToPath, URL } from "node:url"; + +export const projectRoot = join(fileURLToPath(new URL(".", import.meta.url)), "..", ".."); +console.log(projectRoot); diff --git a/tests/cpp/lit/build/do_while.wast.debug.json b/tests/cpp/lit/build/do_while.wast.debug.json index cad40f1..d214a55 100644 --- a/tests/cpp/lit/build/do_while.wast.debug.json +++ b/tests/cpp/lit/build/do_while.wast.debug.json @@ -1,26 +1 @@ -{ - "debugFiles": ["fixture/do-while.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 1] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 3, 25] - ], - [ - [0, 5, 4], - [0, 6, 10], - [0, 6, 18] - ], - [[0, 4, 2]], - [[0, 7, 9]] - ] - } - } -} +{"debugFiles":["fixture/do-while.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,1]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,3,25]],[[0,5,4],[0,6,10],[0,6,18]],[[0,4,2]],[[0,7,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/do_while.wast.expect.json b/tests/cpp/lit/build/do_while.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/do_while.wast.expect.json +++ b/tests/cpp/lit/build/do_while.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/do_while_break.wast.debug.json b/tests/cpp/lit/build/do_while_break.wast.debug.json index b5c0fec..168ce35 100644 --- a/tests/cpp/lit/build/do_while_break.wast.debug.json +++ b/tests/cpp/lit/build/do_while_break.wast.debug.json @@ -1,34 +1 @@ -{ - "debugFiles": ["fixture/do-while-break.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 3], - [3, 4], - [3, 1] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 3, 25] - ], - [ - [0, 5, 4], - [0, 6, 8], - [0, 6, 16] - ], - [[0, 6, 19]], - [ - [0, 7, 10], - [0, 7, 18] - ], - [[0, 4, 2]], - [[0, 4, 2]], - [[0, 8, 9]] - ] - } - } -} +{"debugFiles":["fixture/do-while-break.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,3],[3,4],[3,1]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,3,25]],[[0,5,4],[0,6,8],[0,6,16]],[[0,6,19]],[[0,7,10],[0,7,18]],[[0,4,2]],[[0,4,2]],[[0,8,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/do_while_break.wast.expect.json b/tests/cpp/lit/build/do_while_break.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/do_while_break.wast.expect.json +++ b/tests/cpp/lit/build/do_while_break.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/do_while_continue.wast.debug.json b/tests/cpp/lit/build/do_while_continue.wast.debug.json index e283660..5407e59 100644 --- a/tests/cpp/lit/build/do_while_continue.wast.debug.json +++ b/tests/cpp/lit/build/do_while_continue.wast.debug.json @@ -1,34 +1 @@ -{ - "debugFiles": ["fixture/do-while-continue.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 3], - [4, 5], - [4, 1] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 3, 25] - ], - [ - [0, 5, 4], - [0, 6, 8], - [0, 6, 16] - ], - [[0, 6, 19]], - [[0, 4, 2]], - [ - [0, 7, 10], - [0, 7, 18] - ], - [[0, 4, 2]], - [[0, 8, 9]] - ] - } - } -} +{"debugFiles":["fixture/do-while-continue.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,3],[4,5],[4,1]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,3,25]],[[0,5,4],[0,6,8],[0,6,16]],[[0,6,19]],[[0,4,2]],[[0,7,10],[0,7,18]],[[0,4,2]],[[0,8,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/do_while_continue.wast.expect.json b/tests/cpp/lit/build/do_while_continue.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/do_while_continue.wast.expect.json +++ b/tests/cpp/lit/build/do_while_continue.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/do_while_once.wast.debug.json b/tests/cpp/lit/build/do_while_once.wast.debug.json index 5abcf4c..2cc8037 100644 --- a/tests/cpp/lit/build/do_while_once.wast.debug.json +++ b/tests/cpp/lit/build/do_while_once.wast.debug.json @@ -1,46 +1 @@ -{ - "debugFiles": ["fixture/do-while-once.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 3], - [3, 4], - [3, 5], - [6, 7], - [6, 1] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14] - ], - [ - [0, 5, 4], - [0, 5, 13], - [0, 6, 8], - [0, 6, 16] - ], - [[0, 6, 22]], - [ - [0, 7, 4], - [0, 8, 8], - [0, 8, 16] - ], - [[0, 8, 20]], - [ - [0, 4, 2], - [0, 9, 4] - ], - [[0, 10, 11]], - [[0, 4, 2]], - [[0, 4, 2]], - [ - [0, 11, 9], - [0, 11, 17] - ] - ] - } - } -} +{"debugFiles":["fixture/do-while-once.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,3],[3,4],[3,5],[6,7],[6,1]],"index":0,"lineInfo":[[[0,2,14],[0,3,14]],[[0,5,4],[0,5,13],[0,6,8],[0,6,16]],[[0,6,22]],[[0,7,4],[0,8,8],[0,8,16]],[[0,8,20]],[[0,4,2],[0,9,4]],[[0,10,11]],[[0,4,2]],[[0,4,2]],[[0,11,9],[0,11,17]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/do_while_once.wast.expect.json b/tests/cpp/lit/build/do_while_once.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/do_while_once.wast.expect.json +++ b/tests/cpp/lit/build/do_while_once.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/exit_basicBlock.wast.debug.json b/tests/cpp/lit/build/exit_basicBlock.wast.debug.json index 7553dc1..3cea1a8 100644 --- a/tests/cpp/lit/build/exit_basicBlock.wast.debug.json +++ b/tests/cpp/lit/build/exit_basicBlock.wast.debug.json @@ -1,28 +1 @@ -{ - "debugFiles": ["fixture/exit-basicBlock.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 2], - [3, 4], - [3, 5] - ], - "index": 0, - "lineInfo": [ - [ - [0, 4, 6], - [0, 4, 14] - ], - [[0, 4, 14]], - [ - [0, 4, 19], - [0, 4, 27] - ], - [], - [[0, 5, 17]], - [] - ] - } - } -} +{"debugFiles":["fixture/exit-basicBlock.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,2],[3,4],[3,5]],"index":0,"lineInfo":[[[0,4,6],[0,4,14]],[[0,4,14]],[[0,4,19],[0,4,27]],[],[[0,5,17]],[]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/exit_basicBlock.wast.expect.json b/tests/cpp/lit/build/exit_basicBlock.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/exit_basicBlock.wast.expect.json +++ b/tests/cpp/lit/build/exit_basicBlock.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/expect.test.debug.json b/tests/cpp/lit/build/expect.test.debug.json index 86d17c0..399cd82 100644 --- a/tests/cpp/lit/build/expect.test.debug.json +++ b/tests/cpp/lit/build/expect.test.debug.json @@ -1,1336 +1 @@ -{ - "debugFiles": [ - "~lib/rt/common.ts", - "~lib/rt/tlsf.ts", - "~lib/shared/typeinfo.ts", - "~lib/rt/itcms.ts", - "~lib/util/error.ts", - "~lib/shared/runtime.ts", - "~lib/util/number.ts", - "~lib/util/math.ts", - "~lib/util/string.ts", - "~lib/rt.ts", - "assembly/assertCollector.ts", - "~lib/arraybuffer.ts", - "~lib/util/hash.ts", - "~lib/map.ts", - "assembly/expect.ts", - "~lib/@assemblyscript/wasi-shim/assembly/bindings/wasi_snapshot_preview1.ts", - "tests-as/expect.test.ts", - "assembly/index.ts", - "assembly/comparison.ts", - "assembly/formatPrint.ts", - "~lib/number.ts", - "~lib/util/sort.ts", - "~lib/string.ts", - "~lib/array.ts", - "assembly/implement.ts", - "assembly/output.ts", - "~lib/staticarray.ts", - "~lib/builtins.ts", - "~lib/function.ts" - ], - "debugInfos": { - "assembly/assertCollector/AssertResultCollector#addDescription": { - "branchInfo": [], - "index": 19, - "lineInfo": [ - [ - [10, 10, 4], - [10, 10, 38] - ] - ] - }, - "assembly/assertCollector/AssertResultCollector#clear": { - "branchInfo": [], - "index": 38, - "lineInfo": [ - [ - [10, 39, 4], - [10, 39, 23], - [10, 40, 4], - [10, 40, 35], - [10, 41, 4] - ] - ] - }, - "assembly/assertCollector/AssertResultCollector#collectCheckResult": { - "branchInfo": [ - [0, 1], - [0, 5], - [1, 2], - [1, 3] - ], - "index": 10, - "lineInfo": [ - [ - [10, 21, 4], - [10, 22, 8], - [10, 22, 9] - ], - [ - [10, 23, 6], - [10, 24, 31], - [10, 24, 65], - [10, 25, 28], - [10, 26, 8], - [10, 27, 8], - [10, 28, 8], - [10, 30, 10], - [10, 30, 31], - [20, 187, 35] - ], - [ - [10, 31, 8], - [10, 31, 29], - [10, 31, 52] - ], - [ - [10, 33, 8], - [10, 33, 29], - [10, 33, 47], - [10, 33, 48] - ], - [], - [] - ] - }, - "assembly/assertCollector/AssertResultCollector#constructor": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 8, - "lineInfo": [ - [], - [], - [ - [10, 4, 15], - [10, 5, 14], - [10, 6, 41], - [10, 7, 38] - ] - ] - }, - "assembly/assertCollector/AssertResultCollector#failInfoString": { - "branchInfo": [], - "index": 37, - "lineInfo": [ - [ - [10, 51, 4], - [10, 51, 11], - [10, 51, 30], - [10, 51, 37] - ] - ] - }, - "assembly/assertCollector/AssertResultCollector#failString": { - "branchInfo": [], - "index": 32, - "lineInfo": [ - [ - [10, 48, 4], - [10, 48, 11], - [10, 48, 23], - [20, 187, 35] - ] - ] - }, - "assembly/assertCollector/AssertResultCollector#removeDescription": { - "branchInfo": [], - "index": 20, - "lineInfo": [[[10, 13, 4]]] - }, - "assembly/assertCollector/AssertResultCollector#totalString": { - "branchInfo": [], - "index": 31, - "lineInfo": [ - [ - [10, 45, 4], - [10, 45, 11], - [10, 45, 24], - [20, 187, 35] - ] - ] - }, - "assembly/comparison/equal": { - "branchInfo": [], - "index": 1, - "lineInfo": [ - [ - [18, 94, 6], - [18, 94, 7], - [18, 94, 42], - [18, 95, 11], - [18, 95, 16] - ] - ] - }, - "assembly/comparison/isNull<~lib/string/String|null>": { - "branchInfo": [], - "index": 25, - "lineInfo": [ - [ - [18, 2, 2], - [18, 2, 6], - [18, 2, 7], - [18, 5, 2], - [18, 5, 6], - [18, 5, 7], - [18, 8, 2], - [18, 8, 9], - [18, 8, 14] - ] - ] - }, - "assembly/expect/Value#closeTo": { - "branchInfo": [], - "index": 14, - "lineInfo": [ - [ - [14, 100, 4], - [14, 100, 17], - [14, 101, 8], - [14, 101, 52], - [14, 102, 6], - [14, 103, 8], - [14, 103, 12], - [14, 103, 19], - [14, 103, 33], - [14, 104, 8], - [14, 105, 8], - [14, 105, 15], - [14, 106, 8], - [14, 106, 22], - [14, 106, 29], - [14, 111, 4], - [14, 111, 11] - ] - ] - }, - "assembly/expect/Value#constructor": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 13, - "lineInfo": [ - [], - [], - [ - [14, 12, 4], - [14, 12, 16] - ] - ] - }, - "assembly/expect/Value#constructor": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 9, - "lineInfo": [ - [], - [], - [ - [14, 12, 4], - [14, 12, 16] - ] - ] - }, - "assembly/expect/Value#equal": { - "branchInfo": [], - "index": 11, - "lineInfo": [ - [ - [14, 34, 4], - [14, 35, 6], - [14, 35, 15], - [14, 35, 26], - [14, 36, 6], - [14, 37, 6], - [14, 37, 13], - [14, 38, 6], - [14, 38, 13], - [14, 38, 20], - [14, 40, 4], - [14, 40, 11] - ] - ] - }, - "assembly/expect/Value#equal@varargs": { - "branchInfo": [ - [0, 1], - [0, 2], - [0, 3] - ], - "index": 43, - "lineInfo": [[], [], [[14, 33, 44]], []] - }, - "assembly/expect/Value#greaterThan": { - "branchInfo": [], - "index": 15, - "lineInfo": [ - [ - [14, 53, 4], - [14, 54, 6], - [14, 54, 18], - [14, 55, 6], - [14, 56, 6], - [14, 56, 13], - [14, 57, 6], - [14, 57, 14], - [14, 57, 21], - [14, 59, 4], - [14, 59, 11] - ] - ] - }, - "assembly/expect/Value#greaterThanOrEqual": { - "branchInfo": [], - "index": 16, - "lineInfo": [ - [ - [14, 65, 4], - [14, 66, 6], - [14, 66, 19], - [14, 67, 6], - [14, 68, 6], - [14, 68, 13], - [14, 69, 6], - [14, 69, 15], - [14, 69, 22], - [14, 71, 4], - [14, 71, 11] - ] - ] - }, - "assembly/expect/Value#lessThan": { - "branchInfo": [], - "index": 17, - "lineInfo": [ - [ - [14, 74, 4], - [14, 75, 6], - [14, 75, 18], - [14, 76, 6], - [14, 77, 6], - [14, 77, 13], - [14, 78, 6], - [14, 78, 14], - [14, 78, 21], - [14, 80, 4], - [14, 80, 11] - ] - ] - }, - "assembly/expect/Value#lessThanOrEqual": { - "branchInfo": [], - "index": 18, - "lineInfo": [ - [ - [14, 86, 4], - [14, 87, 6], - [14, 87, 19], - [14, 88, 6], - [14, 89, 6], - [14, 89, 13], - [14, 90, 6], - [14, 90, 15], - [14, 90, 22], - [14, 92, 4], - [14, 92, 11] - ] - ] - }, - "assembly/expect/Value#notEqual": { - "branchInfo": [], - "index": 12, - "lineInfo": [ - [ - [14, 43, 4], - [14, 44, 6], - [14, 44, 7], - [14, 44, 16], - [14, 44, 27], - [14, 45, 6], - [14, 46, 6], - [14, 46, 13], - [14, 47, 6], - [14, 47, 15], - [14, 47, 22], - [14, 49, 4], - [14, 49, 11] - ] - ] - }, - "assembly/expect/Value<~lib/string/String|null>#constructor": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 23, - "lineInfo": [ - [], - [], - [ - [14, 12, 4], - [14, 12, 16] - ] - ] - }, - "assembly/expect/Value<~lib/string/String|null>#isNull": { - "branchInfo": [], - "index": 27, - "lineInfo": [ - [ - [14, 15, 4], - [14, 16, 6], - [14, 16, 16], - [14, 17, 6], - [14, 18, 6], - [14, 18, 13], - [14, 19, 6], - [14, 21, 4], - [14, 21, 11] - ] - ] - }, - "assembly/expect/Value<~lib/string/String|null>#notNull": { - "branchInfo": [], - "index": 28, - "lineInfo": [ - [ - [14, 24, 4], - [14, 25, 6], - [14, 25, 7], - [14, 25, 17], - [14, 26, 6], - [14, 27, 6], - [14, 27, 13], - [14, 28, 6], - [14, 30, 4], - [14, 30, 11] - ] - ] - }, - "assembly/formatPrint/toJson": { - "branchInfo": [], - "index": 4, - "lineInfo": [ - [ - [19, 2, 2], - [19, 2, 6], - [19, 5, 2], - [19, 5, 6], - [19, 8, 6], - [19, 8, 60], - [19, 9, 11], - [20, 383, 35] - ] - ] - }, - "assembly/formatPrint/toJson": { - "branchInfo": [], - "index": 2, - "lineInfo": [ - [ - [19, 2, 2], - [19, 2, 6], - [19, 5, 2], - [19, 5, 6], - [19, 8, 6], - [19, 8, 60], - [19, 9, 11], - [20, 78, 35] - ] - ] - }, - "assembly/formatPrint/toJson<~lib/array/Array<~lib/array/Array<~lib/string/String>>>": { - "branchInfo": [ - [1, 2], - [1, 3] - ], - "index": 35, - "lineInfo": [ - [ - [19, 2, 2], - [19, 2, 6], - [19, 5, 2], - [19, 5, 6], - [19, 8, 2], - [19, 8, 6], - [19, 11, 2], - [19, 11, 6], - [19, 68, 2], - [19, 68, 6], - [19, 76, 6], - [19, 76, 42], - [19, 77, 25], - [19, 77, 43], - [19, 78, 17], - [19, 78, 24] - ], - [ - [19, 78, 34], - [19, 78, 38] - ], - [ - [19, 78, 41], - [19, 79, 6], - [19, 79, 19], - [19, 79, 24], - [19, 79, 31], - [19, 79, 33] - ], - [], - [ - [19, 81, 4], - [19, 81, 11], - [19, 81, 15], - [19, 81, 33] - ] - ] - }, - "assembly/formatPrint/toJson<~lib/array/Array<~lib/string/String>>": { - "branchInfo": [ - [1, 2], - [1, 3] - ], - "index": 34, - "lineInfo": [ - [ - [19, 2, 2], - [19, 2, 6], - [19, 5, 2], - [19, 5, 6], - [19, 8, 2], - [19, 8, 6], - [19, 11, 2], - [19, 11, 6], - [19, 68, 2], - [19, 68, 6], - [19, 76, 6], - [19, 76, 42], - [19, 77, 25], - [19, 77, 43], - [19, 78, 17], - [19, 78, 24] - ], - [ - [19, 78, 34], - [19, 78, 38] - ], - [ - [19, 78, 41], - [19, 79, 6], - [19, 79, 19], - [19, 79, 24], - [19, 79, 31], - [19, 79, 33] - ], - [], - [ - [19, 81, 4], - [19, 81, 11], - [19, 81, 15], - [19, 81, 33] - ] - ] - }, - "assembly/formatPrint/toJson<~lib/map/Map<~lib/string/String\\2c~lib/array/Array<~lib/array/Array<~lib/string/String>>>>": { - "branchInfo": [ - [1, 2], - [1, 3] - ], - "index": 36, - "lineInfo": [ - [ - [19, 2, 2], - [19, 2, 6], - [19, 5, 2], - [19, 5, 6], - [19, 8, 2], - [19, 8, 6], - [19, 11, 2], - [19, 11, 6], - [19, 68, 2], - [19, 68, 6], - [19, 76, 2], - [19, 76, 6], - [19, 83, 2], - [19, 83, 6], - [19, 86, 6], - [19, 86, 24], - [19, 87, 16], - [19, 88, 18], - [19, 89, 25], - [19, 90, 9], - [19, 90, 17], - [23, 69, 28] - ], - [ - [19, 90, 20], - [19, 90, 24] - ], - [ - [19, 90, 36], - [19, 91, 6], - [19, 91, 19], - [19, 91, 24], - [19, 91, 31], - [19, 91, 35], - [19, 91, 41], - [19, 91, 49], - [19, 91, 56], - [19, 91, 62] - ], - [], - [ - [19, 93, 4], - [19, 93, 11], - [19, 93, 16], - [19, 93, 34] - ] - ] - }, - "assembly/formatPrint/toJson<~lib/string/String>": { - "branchInfo": [ - [1, 2], - [1, 44], - [2, 3], - [2, 4], - [5, 6], - [5, 7], - [7, 8], - [7, 9], - [10, 11], - [10, 12], - [12, 13], - [12, 14], - [15, 16], - [15, 17], - [17, 18], - [17, 28], - [18, 19], - [18, 29], - [19, 20], - [19, 30], - [20, 21], - [20, 31], - [21, 22], - [21, 32], - [22, 23], - [22, 33], - [23, 24], - [23, 34], - [24, 25], - [24, 35], - [25, 26], - [25, 36], - [26, 27], - [26, 37], - [39, 40], - [39, 41] - ], - "index": 33, - "lineInfo": [ - [ - [19, 2, 2], - [19, 2, 6], - [19, 5, 2], - [19, 5, 6], - [19, 8, 2], - [19, 8, 6], - [19, 11, 6], - [19, 11, 22], - [19, 12, 24], - [19, 13, 32], - [19, 14, 9], - [19, 14, 17] - ], - [ - [19, 14, 20], - [19, 14, 24] - ], - [ - [19, 15, 6], - [19, 15, 23], - [19, 15, 38], - [19, 17, 9], - [19, 17, 21] - ], - [ - [19, 17, 29], - [19, 17, 41] - ], - [], - [], - [], - [ - [19, 18, 9], - [19, 18, 21] - ], - [ - [19, 18, 29], - [19, 18, 41] - ], - [], - [], - [], - [ - [19, 19, 9], - [19, 19, 21] - ], - [ - [19, 19, 29], - [19, 19, 41] - ], - [], - [], - [ - [19, 21, 8], - [19, 21, 23], - [19, 21, 34] - ], - [ - [19, 23, 16], - [19, 24, 15] - ], - [[19, 27, 15]], - [[19, 30, 15]], - [[19, 33, 15]], - [[19, 36, 15]], - [[19, 39, 15]], - [[19, 42, 15]], - [[19, 45, 15]], - [[19, 48, 15]], - [[19, 51, 15]], - [], - [ - [19, 25, 12], - [19, 25, 27], - [19, 26, 12] - ], - [ - [19, 28, 12], - [19, 28, 27], - [19, 29, 12] - ], - [ - [19, 31, 12], - [19, 31, 27], - [19, 32, 12] - ], - [ - [19, 34, 12], - [19, 34, 27], - [19, 35, 12] - ], - [ - [19, 37, 12], - [19, 37, 27], - [19, 38, 12] - ], - [ - [19, 40, 12], - [19, 40, 27], - [19, 41, 12] - ], - [ - [19, 43, 12], - [19, 43, 27], - [19, 44, 12] - ], - [ - [19, 46, 12], - [19, 46, 27], - [19, 47, 12] - ], - [ - [19, 49, 12], - [19, 49, 27], - [19, 50, 12] - ], - [ - [19, 52, 12], - [19, 52, 27], - [19, 53, 12] - ], - [ - [19, 54, 19], - [19, 56, 32], - [19, 57, 12], - [19, 57, 27], - [19, 58, 17], - [19, 58, 25], - [20, 78, 35] - ], - [ - [19, 58, 45], - [19, 58, 49] - ], - [ - [19, 58, 52], - [19, 59, 14], - [19, 59, 29] - ], - [], - [ - [19, 23, 8], - [19, 61, 12], - [19, 61, 27] - ], - [[19, 14, 36]], - [], - [ - [19, 66, 4], - [19, 66, 11], - [19, 66, 17], - [19, 66, 32], - [19, 66, 38] - ] - ] - }, - "assembly/formatPrint/toJson<~lib/string/String|null>": { - "branchInfo": [ - [0, 1], - [0, 2], - [3, 4], - [3, 46], - [4, 5], - [4, 6], - [7, 8], - [7, 9], - [9, 10], - [9, 11], - [12, 13], - [12, 14], - [14, 15], - [14, 16], - [17, 18], - [17, 19], - [19, 20], - [19, 30], - [20, 21], - [20, 31], - [21, 22], - [21, 32], - [22, 23], - [22, 33], - [23, 24], - [23, 34], - [24, 25], - [24, 35], - [25, 26], - [25, 36], - [26, 27], - [26, 37], - [27, 28], - [27, 38], - [28, 29], - [28, 39], - [41, 42], - [41, 43] - ], - "index": 26, - "lineInfo": [ - [ - [19, 2, 6], - [19, 2, 23], - [19, 2, 28] - ], - [ - [19, 3, 4], - [19, 3, 11] - ], - [ - [19, 5, 2], - [19, 5, 6], - [19, 8, 2], - [19, 8, 6], - [19, 11, 6], - [19, 11, 22], - [19, 12, 24], - [19, 13, 32], - [19, 14, 9], - [19, 14, 17] - ], - [ - [19, 14, 20], - [19, 14, 24] - ], - [ - [19, 15, 6], - [19, 15, 23], - [19, 15, 38], - [19, 17, 9], - [19, 17, 21] - ], - [ - [19, 17, 29], - [19, 17, 41] - ], - [], - [], - [], - [ - [19, 18, 9], - [19, 18, 21] - ], - [ - [19, 18, 29], - [19, 18, 41] - ], - [], - [], - [], - [ - [19, 19, 9], - [19, 19, 21] - ], - [ - [19, 19, 29], - [19, 19, 41] - ], - [], - [], - [ - [19, 21, 8], - [19, 21, 23], - [19, 21, 34] - ], - [ - [19, 23, 16], - [19, 24, 15] - ], - [[19, 27, 15]], - [[19, 30, 15]], - [[19, 33, 15]], - [[19, 36, 15]], - [[19, 39, 15]], - [[19, 42, 15]], - [[19, 45, 15]], - [[19, 48, 15]], - [[19, 51, 15]], - [], - [ - [19, 25, 12], - [19, 25, 27], - [19, 26, 12] - ], - [ - [19, 28, 12], - [19, 28, 27], - [19, 29, 12] - ], - [ - [19, 31, 12], - [19, 31, 27], - [19, 32, 12] - ], - [ - [19, 34, 12], - [19, 34, 27], - [19, 35, 12] - ], - [ - [19, 37, 12], - [19, 37, 27], - [19, 38, 12] - ], - [ - [19, 40, 12], - [19, 40, 27], - [19, 41, 12] - ], - [ - [19, 43, 12], - [19, 43, 27], - [19, 44, 12] - ], - [ - [19, 46, 12], - [19, 46, 27], - [19, 47, 12] - ], - [ - [19, 49, 12], - [19, 49, 27], - [19, 50, 12] - ], - [ - [19, 52, 12], - [19, 52, 27], - [19, 53, 12] - ], - [ - [19, 54, 19], - [19, 56, 32], - [19, 57, 12], - [19, 57, 27], - [19, 58, 17], - [19, 58, 25], - [20, 78, 35] - ], - [ - [19, 58, 45], - [19, 58, 49] - ], - [ - [19, 58, 52], - [19, 59, 14], - [19, 59, 29] - ], - [], - [ - [19, 23, 8], - [19, 61, 12], - [19, 61, 27] - ], - [[19, 14, 36]], - [], - [ - [19, 66, 4], - [19, 66, 11], - [19, 66, 17], - [19, 66, 32], - [19, 66, 38] - ] - ] - }, - "assembly/implement/describeImpl": { - "branchInfo": [], - "index": 29, - "lineInfo": [ - [ - [24, 8, 2], - [24, 8, 30], - [24, 9, 2], - [24, 10, 2] - ] - ] - }, - "assembly/implement/testImpl": { - "branchInfo": [], - "index": 21, - "lineInfo": [ - [ - [24, 13, 2], - [24, 13, 30], - [24, 14, 2], - [24, 15, 2], - [24, 16, 2] - ] - ] - }, - "assembly/index/describe": { - "branchInfo": [], - "index": 30, - "lineInfo": [ - [ - [17, 19, 2], - [17, 19, 15], - [17, 19, 28] - ] - ] - }, - "assembly/index/endTest": { "branchInfo": [], "index": 7, "lineInfo": [[[17, 61, 2]]] }, - "assembly/index/expect": { - "branchInfo": [], - "index": 3, - "lineInfo": [ - [ - [17, 57, 2], - [17, 57, 9], - [17, 57, 22] - ] - ] - }, - "assembly/index/expect": { - "branchInfo": [], - "index": 0, - "lineInfo": [ - [ - [17, 57, 2], - [17, 57, 9], - [17, 57, 22] - ] - ] - }, - "assembly/index/expect<~lib/string/String|null>": { - "branchInfo": [], - "index": 24, - "lineInfo": [ - [ - [17, 57, 2], - [17, 57, 9], - [17, 57, 22] - ] - ] - }, - "assembly/index/test": { - "branchInfo": [], - "index": 22, - "lineInfo": [ - [ - [17, 28, 2], - [17, 28, 11], - [17, 28, 24] - ] - ] - }, - "assembly/output/checkMemory": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 5, - "lineInfo": [ - [ - [25, 45, 9], - [25, 45, 18] - ], - [[25, 45, 40]], - [] - ] - }, - "assembly/output/fromCString": { - "branchInfo": [ - [1, 2], - [1, 3] - ], - "index": 6, - "lineInfo": [ - [ - [25, 49, 2], - [25, 49, 13] - ], - [ - [25, 50, 9], - [25, 50, 18], - [25, 50, 28], - [25, 50, 38] - ], - [[25, 51, 4]], - [], - [ - [22, 767, 80], - [25, 50, 2], - [25, 53, 2], - [25, 53, 9], - [25, 53, 34], - [25, 53, 43] - ] - ] - }, - "assembly/output/getArgs": { - "branchInfo": [ - [1, 2], - [1, 3] - ], - "index": 40, - "lineInfo": [ - [ - [25, 57, 25], - [25, 60, 2], - [25, 60, 14], - [25, 60, 31], - [25, 60, 49], - [25, 61, 2], - [25, 61, 8], - [25, 61, 23], - [25, 61, 39], - [25, 61, 56], - [25, 62, 2], - [25, 62, 9], - [25, 63, 2], - [25, 63, 15], - [25, 63, 27], - [25, 64, 2], - [25, 64, 26], - [25, 64, 38], - [25, 66, 25], - [25, 66, 41], - [25, 66, 46], - [25, 66, 53], - [25, 66, 58], - [25, 67, 28], - [25, 67, 44], - [25, 68, 2], - [25, 68, 14], - [25, 68, 50], - [25, 68, 51], - [25, 68, 58], - [25, 68, 63], - [25, 69, 2], - [25, 69, 14], - [25, 69, 53], - [25, 70, 2], - [25, 70, 8], - [25, 71, 4], - [25, 72, 4], - [25, 74, 2], - [25, 74, 9], - [25, 75, 7], - [25, 75, 22] - ], - [ - [25, 75, 25], - [25, 75, 29] - ], - [ - [25, 75, 35], - [25, 76, 4], - [25, 76, 21], - [25, 77, 6], - [25, 77, 42], - [25, 77, 46], - [25, 79, 16], - [25, 79, 28], - [25, 80, 4], - [25, 80, 14] - ], - [], - [ - [25, 83, 2], - [25, 83, 9] - ] - ] - }, - "assembly/output/output": { - "branchInfo": [], - "index": 42, - "lineInfo": [ - [ - [25, 21, 27], - [25, 22, 2], - [25, 22, 14], - [25, 23, 2], - [25, 23, 14], - [25, 24, 2], - [25, 24, 14], - [25, 25, 2], - [25, 27, 2], - [25, 29, 23], - [25, 29, 29], - [25, 29, 41], - [25, 29, 48], - [25, 31, 25], - [25, 31, 35], - [25, 31, 44], - [25, 31, 47], - [25, 31, 53], - [25, 32, 2], - [25, 32, 12], - [25, 32, 28] - ] - ] - }, - "assembly/output/perror": { - "branchInfo": [ - [0, 1], - [0, 2], - [2, 3], - [2, 4] - ], - "index": 39, - "lineInfo": [ - [ - [25, 38, 6], - [25, 38, 13] - ], - [[25, 39, 4]], - [[25, 41, 9]], - [ - [25, 41, 16], - [25, 41, 30], - [25, 41, 37], - [25, 41, 43] - ], - [] - ] - }, - "assembly/output/writeFile": { - "branchInfo": [ - [0, 1], - [0, 2], - [3, 4], - [3, 3] - ], - "index": 41, - "lineInfo": [ - [ - [25, 87, 6], - [25, 87, 21] - ], - [[25, 87, 24]], - [ - [22, 697, 63], - [25, 89, 19], - [25, 89, 38], - [25, 91, 2], - [25, 91, 14], - [25, 91, 44], - [25, 92, 2], - [25, 92, 8], - [25, 93, 4], - [25, 94, 4], - [25, 95, 4], - [25, 96, 4], - [25, 97, 4], - [25, 97, 19], - [25, 98, 4], - [25, 99, 6], - [25, 100, 6], - [25, 101, 6], - [25, 102, 6], - [25, 103, 4], - [25, 104, 6], - [25, 105, 6], - [25, 106, 6], - [25, 107, 6], - [25, 108, 4], - [25, 109, 4], - [25, 111, 2], - [25, 111, 9], - [25, 112, 2], - [25, 112, 29], - [25, 112, 38], - [25, 115, 14], - [25, 115, 33], - [25, 117, 2], - [25, 117, 12], - [25, 118, 2], - [25, 118, 16], - [25, 120, 2], - [25, 120, 14], - [25, 120, 39] - ], - [ - [25, 122, 4], - [25, 122, 10], - [25, 122, 19], - [25, 122, 35], - [25, 122, 59], - [25, 122, 62], - [25, 123, 4], - [25, 123, 11], - [25, 124, 4], - [25, 124, 19], - [25, 124, 31], - [25, 125, 4], - [25, 125, 15], - [25, 125, 27], - [25, 126, 11], - [25, 126, 25] - ], - [[25, 121, 2]], - [ - [25, 127, 2], - [25, 127, 11] - ] - ] - } - } -} +{"debugFiles":["~lib/rt/common.ts","~lib/rt/tlsf.ts","~lib/shared/typeinfo.ts","~lib/rt/itcms.ts","~lib/util/error.ts","~lib/shared/runtime.ts","~lib/util/number.ts","~lib/util/math.ts","~lib/util/string.ts","~lib/rt.ts","assembly/assertCollector.ts","~lib/arraybuffer.ts","~lib/util/hash.ts","~lib/map.ts","assembly/expect.ts","~lib/@assemblyscript/wasi-shim/assembly/bindings/wasi_snapshot_preview1.ts","tests-as/expect.test.ts","assembly/index.ts","assembly/comparison.ts","assembly/formatPrint.ts","~lib/number.ts","~lib/util/sort.ts","~lib/string.ts","~lib/array.ts","assembly/implement.ts","assembly/output.ts","~lib/staticarray.ts","~lib/builtins.ts","~lib/function.ts"],"debugInfos":{"assembly/assertCollector/AssertResultCollector#addDescription":{"branchInfo":[],"index":19,"lineInfo":[[[10,10,4],[10,10,38]]]},"assembly/assertCollector/AssertResultCollector#clear":{"branchInfo":[],"index":38,"lineInfo":[[[10,39,4],[10,39,23],[10,40,4],[10,40,35],[10,41,4]]]},"assembly/assertCollector/AssertResultCollector#collectCheckResult":{"branchInfo":[[0,1],[0,5],[1,2],[1,3]],"index":10,"lineInfo":[[[10,21,4],[10,22,8],[10,22,9]],[[10,23,6],[10,24,31],[10,24,65],[10,25,28],[10,26,8],[10,27,8],[10,28,8],[10,30,10],[10,30,31],[20,187,35]],[[10,31,8],[10,31,29],[10,31,52]],[[10,33,8],[10,33,29],[10,33,47],[10,33,48]],[],[]]},"assembly/assertCollector/AssertResultCollector#constructor":{"branchInfo":[[0,1],[0,2]],"index":8,"lineInfo":[[],[],[[10,4,15],[10,5,14],[10,6,41],[10,7,38]]]},"assembly/assertCollector/AssertResultCollector#failInfoString":{"branchInfo":[],"index":37,"lineInfo":[[[10,51,4],[10,51,11],[10,51,30],[10,51,37]]]},"assembly/assertCollector/AssertResultCollector#failString":{"branchInfo":[],"index":32,"lineInfo":[[[10,48,4],[10,48,11],[10,48,23],[20,187,35]]]},"assembly/assertCollector/AssertResultCollector#removeDescription":{"branchInfo":[],"index":20,"lineInfo":[[[10,13,4]]]},"assembly/assertCollector/AssertResultCollector#totalString":{"branchInfo":[],"index":31,"lineInfo":[[[10,45,4],[10,45,11],[10,45,24],[20,187,35]]]},"assembly/comparison/equal":{"branchInfo":[],"index":1,"lineInfo":[[[18,94,6],[18,94,7],[18,94,42],[18,95,11],[18,95,16]]]},"assembly/comparison/isNull<~lib/string/String|null>":{"branchInfo":[],"index":25,"lineInfo":[[[18,2,2],[18,2,6],[18,2,7],[18,5,2],[18,5,6],[18,5,7],[18,8,2],[18,8,9],[18,8,14]]]},"assembly/expect/Value#closeTo":{"branchInfo":[],"index":14,"lineInfo":[[[14,100,4],[14,100,17],[14,101,8],[14,101,52],[14,102,6],[14,103,8],[14,103,12],[14,103,19],[14,103,33],[14,104,8],[14,105,8],[14,105,15],[14,106,8],[14,106,22],[14,106,29],[14,111,4],[14,111,11]]]},"assembly/expect/Value#constructor":{"branchInfo":[[0,1],[0,2]],"index":13,"lineInfo":[[],[],[[14,12,4],[14,12,16]]]},"assembly/expect/Value#constructor":{"branchInfo":[[0,1],[0,2]],"index":9,"lineInfo":[[],[],[[14,12,4],[14,12,16]]]},"assembly/expect/Value#equal":{"branchInfo":[],"index":11,"lineInfo":[[[14,34,4],[14,35,6],[14,35,15],[14,35,26],[14,36,6],[14,37,6],[14,37,13],[14,38,6],[14,38,13],[14,38,20],[14,40,4],[14,40,11]]]},"assembly/expect/Value#equal@varargs":{"branchInfo":[[0,1],[0,2],[0,3]],"index":43,"lineInfo":[[],[],[[14,33,44]],[]]},"assembly/expect/Value#greaterThan":{"branchInfo":[],"index":15,"lineInfo":[[[14,53,4],[14,54,6],[14,54,18],[14,55,6],[14,56,6],[14,56,13],[14,57,6],[14,57,14],[14,57,21],[14,59,4],[14,59,11]]]},"assembly/expect/Value#greaterThanOrEqual":{"branchInfo":[],"index":16,"lineInfo":[[[14,65,4],[14,66,6],[14,66,19],[14,67,6],[14,68,6],[14,68,13],[14,69,6],[14,69,15],[14,69,22],[14,71,4],[14,71,11]]]},"assembly/expect/Value#lessThan":{"branchInfo":[],"index":17,"lineInfo":[[[14,74,4],[14,75,6],[14,75,18],[14,76,6],[14,77,6],[14,77,13],[14,78,6],[14,78,14],[14,78,21],[14,80,4],[14,80,11]]]},"assembly/expect/Value#lessThanOrEqual":{"branchInfo":[],"index":18,"lineInfo":[[[14,86,4],[14,87,6],[14,87,19],[14,88,6],[14,89,6],[14,89,13],[14,90,6],[14,90,15],[14,90,22],[14,92,4],[14,92,11]]]},"assembly/expect/Value#notEqual":{"branchInfo":[],"index":12,"lineInfo":[[[14,43,4],[14,44,6],[14,44,7],[14,44,16],[14,44,27],[14,45,6],[14,46,6],[14,46,13],[14,47,6],[14,47,15],[14,47,22],[14,49,4],[14,49,11]]]},"assembly/expect/Value<~lib/string/String|null>#constructor":{"branchInfo":[[0,1],[0,2]],"index":23,"lineInfo":[[],[],[[14,12,4],[14,12,16]]]},"assembly/expect/Value<~lib/string/String|null>#isNull":{"branchInfo":[],"index":27,"lineInfo":[[[14,15,4],[14,16,6],[14,16,16],[14,17,6],[14,18,6],[14,18,13],[14,19,6],[14,21,4],[14,21,11]]]},"assembly/expect/Value<~lib/string/String|null>#notNull":{"branchInfo":[],"index":28,"lineInfo":[[[14,24,4],[14,25,6],[14,25,7],[14,25,17],[14,26,6],[14,27,6],[14,27,13],[14,28,6],[14,30,4],[14,30,11]]]},"assembly/formatPrint/toJson":{"branchInfo":[],"index":4,"lineInfo":[[[19,2,2],[19,2,6],[19,5,2],[19,5,6],[19,8,6],[19,8,60],[19,9,11],[20,383,35]]]},"assembly/formatPrint/toJson":{"branchInfo":[],"index":2,"lineInfo":[[[19,2,2],[19,2,6],[19,5,2],[19,5,6],[19,8,6],[19,8,60],[19,9,11],[20,78,35]]]},"assembly/formatPrint/toJson<~lib/array/Array<~lib/array/Array<~lib/string/String>>>":{"branchInfo":[[1,2],[1,3]],"index":35,"lineInfo":[[[19,2,2],[19,2,6],[19,5,2],[19,5,6],[19,8,2],[19,8,6],[19,11,2],[19,11,6],[19,68,2],[19,68,6],[19,76,6],[19,76,42],[19,77,25],[19,77,43],[19,78,17],[19,78,24]],[[19,78,34],[19,78,38]],[[19,78,41],[19,79,6],[19,79,19],[19,79,24],[19,79,31],[19,79,33]],[],[[19,81,4],[19,81,11],[19,81,15],[19,81,33]]]},"assembly/formatPrint/toJson<~lib/array/Array<~lib/string/String>>":{"branchInfo":[[1,2],[1,3]],"index":34,"lineInfo":[[[19,2,2],[19,2,6],[19,5,2],[19,5,6],[19,8,2],[19,8,6],[19,11,2],[19,11,6],[19,68,2],[19,68,6],[19,76,6],[19,76,42],[19,77,25],[19,77,43],[19,78,17],[19,78,24]],[[19,78,34],[19,78,38]],[[19,78,41],[19,79,6],[19,79,19],[19,79,24],[19,79,31],[19,79,33]],[],[[19,81,4],[19,81,11],[19,81,15],[19,81,33]]]},"assembly/formatPrint/toJson<~lib/map/Map<~lib/string/String\\2c~lib/array/Array<~lib/array/Array<~lib/string/String>>>>":{"branchInfo":[[1,2],[1,3]],"index":36,"lineInfo":[[[19,2,2],[19,2,6],[19,5,2],[19,5,6],[19,8,2],[19,8,6],[19,11,2],[19,11,6],[19,68,2],[19,68,6],[19,76,2],[19,76,6],[19,83,2],[19,83,6],[19,86,6],[19,86,24],[19,87,16],[19,88,18],[19,89,25],[19,90,9],[19,90,17],[23,69,28]],[[19,90,20],[19,90,24]],[[19,90,36],[19,91,6],[19,91,19],[19,91,24],[19,91,31],[19,91,35],[19,91,41],[19,91,49],[19,91,56],[19,91,62]],[],[[19,93,4],[19,93,11],[19,93,16],[19,93,34]]]},"assembly/formatPrint/toJson<~lib/string/String>":{"branchInfo":[[1,2],[1,44],[2,3],[2,4],[5,6],[5,7],[7,8],[7,9],[10,11],[10,12],[12,13],[12,14],[15,16],[15,17],[17,18],[17,28],[18,19],[18,29],[19,20],[19,30],[20,21],[20,31],[21,22],[21,32],[22,23],[22,33],[23,24],[23,34],[24,25],[24,35],[25,26],[25,36],[26,27],[26,37],[39,40],[39,41]],"index":33,"lineInfo":[[[19,2,2],[19,2,6],[19,5,2],[19,5,6],[19,8,2],[19,8,6],[19,11,6],[19,11,22],[19,12,24],[19,13,32],[19,14,9],[19,14,17]],[[19,14,20],[19,14,24]],[[19,15,6],[19,15,23],[19,15,38],[19,17,9],[19,17,21]],[[19,17,29],[19,17,41]],[],[],[],[[19,18,9],[19,18,21]],[[19,18,29],[19,18,41]],[],[],[],[[19,19,9],[19,19,21]],[[19,19,29],[19,19,41]],[],[],[[19,21,8],[19,21,23],[19,21,34]],[[19,23,16],[19,24,15]],[[19,27,15]],[[19,30,15]],[[19,33,15]],[[19,36,15]],[[19,39,15]],[[19,42,15]],[[19,45,15]],[[19,48,15]],[[19,51,15]],[],[[19,25,12],[19,25,27],[19,26,12]],[[19,28,12],[19,28,27],[19,29,12]],[[19,31,12],[19,31,27],[19,32,12]],[[19,34,12],[19,34,27],[19,35,12]],[[19,37,12],[19,37,27],[19,38,12]],[[19,40,12],[19,40,27],[19,41,12]],[[19,43,12],[19,43,27],[19,44,12]],[[19,46,12],[19,46,27],[19,47,12]],[[19,49,12],[19,49,27],[19,50,12]],[[19,52,12],[19,52,27],[19,53,12]],[[19,54,19],[19,56,32],[19,57,12],[19,57,27],[19,58,17],[19,58,25],[20,78,35]],[[19,58,45],[19,58,49]],[[19,58,52],[19,59,14],[19,59,29]],[],[[19,23,8],[19,61,12],[19,61,27]],[[19,14,36]],[],[[19,66,4],[19,66,11],[19,66,17],[19,66,32],[19,66,38]]]},"assembly/formatPrint/toJson<~lib/string/String|null>":{"branchInfo":[[0,1],[0,2],[3,4],[3,46],[4,5],[4,6],[7,8],[7,9],[9,10],[9,11],[12,13],[12,14],[14,15],[14,16],[17,18],[17,19],[19,20],[19,30],[20,21],[20,31],[21,22],[21,32],[22,23],[22,33],[23,24],[23,34],[24,25],[24,35],[25,26],[25,36],[26,27],[26,37],[27,28],[27,38],[28,29],[28,39],[41,42],[41,43]],"index":26,"lineInfo":[[[19,2,6],[19,2,23],[19,2,28]],[[19,3,4],[19,3,11]],[[19,5,2],[19,5,6],[19,8,2],[19,8,6],[19,11,6],[19,11,22],[19,12,24],[19,13,32],[19,14,9],[19,14,17]],[[19,14,20],[19,14,24]],[[19,15,6],[19,15,23],[19,15,38],[19,17,9],[19,17,21]],[[19,17,29],[19,17,41]],[],[],[],[[19,18,9],[19,18,21]],[[19,18,29],[19,18,41]],[],[],[],[[19,19,9],[19,19,21]],[[19,19,29],[19,19,41]],[],[],[[19,21,8],[19,21,23],[19,21,34]],[[19,23,16],[19,24,15]],[[19,27,15]],[[19,30,15]],[[19,33,15]],[[19,36,15]],[[19,39,15]],[[19,42,15]],[[19,45,15]],[[19,48,15]],[[19,51,15]],[],[[19,25,12],[19,25,27],[19,26,12]],[[19,28,12],[19,28,27],[19,29,12]],[[19,31,12],[19,31,27],[19,32,12]],[[19,34,12],[19,34,27],[19,35,12]],[[19,37,12],[19,37,27],[19,38,12]],[[19,40,12],[19,40,27],[19,41,12]],[[19,43,12],[19,43,27],[19,44,12]],[[19,46,12],[19,46,27],[19,47,12]],[[19,49,12],[19,49,27],[19,50,12]],[[19,52,12],[19,52,27],[19,53,12]],[[19,54,19],[19,56,32],[19,57,12],[19,57,27],[19,58,17],[19,58,25],[20,78,35]],[[19,58,45],[19,58,49]],[[19,58,52],[19,59,14],[19,59,29]],[],[[19,23,8],[19,61,12],[19,61,27]],[[19,14,36]],[],[[19,66,4],[19,66,11],[19,66,17],[19,66,32],[19,66,38]]]},"assembly/implement/describeImpl":{"branchInfo":[],"index":29,"lineInfo":[[[24,8,2],[24,8,30],[24,9,2],[24,10,2]]]},"assembly/implement/testImpl":{"branchInfo":[],"index":21,"lineInfo":[[[24,13,2],[24,13,30],[24,14,2],[24,15,2],[24,16,2]]]},"assembly/index/describe":{"branchInfo":[],"index":30,"lineInfo":[[[17,19,2],[17,19,15],[17,19,28]]]},"assembly/index/endTest":{"branchInfo":[],"index":7,"lineInfo":[[[17,61,2]]]},"assembly/index/expect":{"branchInfo":[],"index":3,"lineInfo":[[[17,57,2],[17,57,9],[17,57,22]]]},"assembly/index/expect":{"branchInfo":[],"index":0,"lineInfo":[[[17,57,2],[17,57,9],[17,57,22]]]},"assembly/index/expect<~lib/string/String|null>":{"branchInfo":[],"index":24,"lineInfo":[[[17,57,2],[17,57,9],[17,57,22]]]},"assembly/index/test":{"branchInfo":[],"index":22,"lineInfo":[[[17,28,2],[17,28,11],[17,28,24]]]},"assembly/output/checkMemory":{"branchInfo":[[0,1],[0,2]],"index":5,"lineInfo":[[[25,45,9],[25,45,18]],[[25,45,40]],[]]},"assembly/output/fromCString":{"branchInfo":[[1,2],[1,3]],"index":6,"lineInfo":[[[25,49,2],[25,49,13]],[[25,50,9],[25,50,18],[25,50,28],[25,50,38]],[[25,51,4]],[],[[22,767,80],[25,50,2],[25,53,2],[25,53,9],[25,53,34],[25,53,43]]]},"assembly/output/getArgs":{"branchInfo":[[1,2],[1,3]],"index":40,"lineInfo":[[[25,57,25],[25,60,2],[25,60,14],[25,60,31],[25,60,49],[25,61,2],[25,61,8],[25,61,23],[25,61,39],[25,61,56],[25,62,2],[25,62,9],[25,63,2],[25,63,15],[25,63,27],[25,64,2],[25,64,26],[25,64,38],[25,66,25],[25,66,41],[25,66,46],[25,66,53],[25,66,58],[25,67,28],[25,67,44],[25,68,2],[25,68,14],[25,68,50],[25,68,51],[25,68,58],[25,68,63],[25,69,2],[25,69,14],[25,69,53],[25,70,2],[25,70,8],[25,71,4],[25,72,4],[25,74,2],[25,74,9],[25,75,7],[25,75,22]],[[25,75,25],[25,75,29]],[[25,75,35],[25,76,4],[25,76,21],[25,77,6],[25,77,42],[25,77,46],[25,79,16],[25,79,28],[25,80,4],[25,80,14]],[],[[25,83,2],[25,83,9]]]},"assembly/output/output":{"branchInfo":[],"index":42,"lineInfo":[[[25,21,27],[25,22,2],[25,22,14],[25,23,2],[25,23,14],[25,24,2],[25,24,14],[25,25,2],[25,27,2],[25,29,23],[25,29,29],[25,29,41],[25,29,48],[25,31,25],[25,31,35],[25,31,44],[25,31,47],[25,31,53],[25,32,2],[25,32,12],[25,32,28]]]},"assembly/output/perror":{"branchInfo":[[0,1],[0,2],[2,3],[2,4]],"index":39,"lineInfo":[[[25,38,6],[25,38,13]],[[25,39,4]],[[25,41,9]],[[25,41,16],[25,41,30],[25,41,37],[25,41,43]],[]]},"assembly/output/writeFile":{"branchInfo":[[0,1],[0,2],[3,4],[3,3]],"index":41,"lineInfo":[[[25,87,6],[25,87,21]],[[25,87,24]],[[22,697,63],[25,89,19],[25,89,38],[25,91,2],[25,91,14],[25,91,44],[25,92,2],[25,92,8],[25,93,4],[25,94,4],[25,95,4],[25,96,4],[25,97,4],[25,97,19],[25,98,4],[25,99,6],[25,100,6],[25,101,6],[25,102,6],[25,103,4],[25,104,6],[25,105,6],[25,106,6],[25,107,6],[25,108,4],[25,109,4],[25,111,2],[25,111,9],[25,112,2],[25,112,29],[25,112,38],[25,115,14],[25,115,33],[25,117,2],[25,117,12],[25,118,2],[25,118,16],[25,120,2],[25,120,14],[25,120,39]],[[25,122,4],[25,122,10],[25,122,19],[25,122,35],[25,122,59],[25,122,62],[25,123,4],[25,123,11],[25,124,4],[25,124,19],[25,124,31],[25,125,4],[25,125,15],[25,125,27],[25,126,11],[25,126,25]],[[25,121,2]],[[25,127,2],[25,127,11]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/expect.test.expect.json b/tests/cpp/lit/build/expect.test.expect.json index 5ea750f..57f50bf 100644 --- a/tests/cpp/lit/build/expect.test.expect.json +++ b/tests/cpp/lit/build/expect.test.expect.json @@ -1,13 +1 @@ -{ - "0": "tests-as/expect.test.ts:8:4", - "1": "tests-as/expect.test.ts:9:4", - "10": "tests-as/expect.test.ts:20:4", - "2": "tests-as/expect.test.ts:10:4", - "3": "tests-as/expect.test.ts:11:4", - "4": "tests-as/expect.test.ts:12:4", - "5": "tests-as/expect.test.ts:13:4", - "6": "tests-as/expect.test.ts:14:4", - "7": "tests-as/expect.test.ts:15:4", - "8": "tests-as/expect.test.ts:16:4", - "9": "tests-as/expect.test.ts:19:4" -} +{"0":"tests-as/expect.test.ts:8:4","1":"tests-as/expect.test.ts:9:4","10":"tests-as/expect.test.ts:20:4","2":"tests-as/expect.test.ts:10:4","3":"tests-as/expect.test.ts:11:4","4":"tests-as/expect.test.ts:12:4","5":"tests-as/expect.test.ts:13:4","6":"tests-as/expect.test.ts:14:4","7":"tests-as/expect.test.ts:15:4","8":"tests-as/expect.test.ts:16:4","9":"tests-as/expect.test.ts:19:4"} \ No newline at end of file diff --git a/tests/cpp/lit/build/for_loop.wast.debug.json b/tests/cpp/lit/build/for_loop.wast.debug.json index 59e17c7..d66f010 100644 --- a/tests/cpp/lit/build/for_loop.wast.debug.json +++ b/tests/cpp/lit/build/for_loop.wast.debug.json @@ -1,34 +1 @@ -{ - "debugFiles": ["fixture/for-loop.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 3] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 4, 19] - ], - [ - [0, 4, 22], - [0, 4, 30] - ], - [ - [0, 4, 37], - [0, 5, 4], - [0, 5, 13] - ], - [[0, 4, 19]], - [ - [0, 7, 2], - [0, 7, 11], - [0, 8, 9] - ] - ] - } - } -} +{"debugFiles":["fixture/for-loop.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,3]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,4,19]],[[0,4,22],[0,4,30]],[[0,4,37],[0,5,4],[0,5,13]],[[0,4,19]],[[0,7,2],[0,7,11],[0,8,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/for_loop.wast.expect.json b/tests/cpp/lit/build/for_loop.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/for_loop.wast.expect.json +++ b/tests/cpp/lit/build/for_loop.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/for_loop_break.wast.debug.json b/tests/cpp/lit/build/for_loop_break.wast.debug.json index a7956dd..073e44b 100644 --- a/tests/cpp/lit/build/for_loop_break.wast.debug.json +++ b/tests/cpp/lit/build/for_loop_break.wast.debug.json @@ -1,38 +1 @@ -{ - "debugFiles": ["fixture/for-loop-break.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 5], - [2, 3], - [2, 4] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 4, 19] - ], - [ - [0, 4, 22], - [0, 4, 30] - ], - [ - [0, 5, 8], - [0, 5, 16] - ], - [[0, 5, 19]], - [ - [0, 4, 37], - [0, 6, 4], - [0, 6, 13] - ], - [[0, 4, 19]], - [[0, 4, 19]], - [[0, 8, 9]] - ] - } - } -} +{"debugFiles":["fixture/for-loop-break.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,5],[2,3],[2,4]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,4,19]],[[0,4,22],[0,4,30]],[[0,5,8],[0,5,16]],[[0,5,19]],[[0,4,37],[0,6,4],[0,6,13]],[[0,4,19]],[[0,4,19]],[[0,8,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/for_loop_break.wast.expect.json b/tests/cpp/lit/build/for_loop_break.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/for_loop_break.wast.expect.json +++ b/tests/cpp/lit/build/for_loop_break.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/for_loop_continue.wast.debug.json b/tests/cpp/lit/build/for_loop_continue.wast.debug.json index 3cc31e6..3c23ea8 100644 --- a/tests/cpp/lit/build/for_loop_continue.wast.debug.json +++ b/tests/cpp/lit/build/for_loop_continue.wast.debug.json @@ -1,39 +1 @@ -{ - "debugFiles": ["fixture/for-loop-continue.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 6], - [2, 3], - [2, 4] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 4, 19] - ], - [ - [0, 4, 22], - [0, 4, 30] - ], - [ - [0, 5, 8], - [0, 5, 16], - [0, 5, 21] - ], - [[0, 5, 24]], - [ - [0, 4, 30], - [0, 6, 4], - [0, 6, 13] - ], - [[0, 4, 37]], - [[0, 4, 19]], - [[0, 8, 9]] - ] - } - } -} +{"debugFiles":["fixture/for-loop-continue.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,6],[2,3],[2,4]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,4,19]],[[0,4,22],[0,4,30]],[[0,5,8],[0,5,16],[0,5,21]],[[0,5,24]],[[0,4,30],[0,6,4],[0,6,13]],[[0,4,37]],[[0,4,19]],[[0,8,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/for_loop_continue.wast.expect.json b/tests/cpp/lit/build/for_loop_continue.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/for_loop_continue.wast.expect.json +++ b/tests/cpp/lit/build/for_loop_continue.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/for_loop_return.wast.debug.json b/tests/cpp/lit/build/for_loop_return.wast.debug.json index af38d18..3e20712 100644 --- a/tests/cpp/lit/build/for_loop_return.wast.debug.json +++ b/tests/cpp/lit/build/for_loop_return.wast.debug.json @@ -1,37 +1 @@ -{ - "debugFiles": ["fixture/for-loop-return.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 5], - [2, 3], - [2, 4] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 4, 19] - ], - [ - [0, 4, 22], - [0, 4, 30] - ], - [ - [0, 5, 8], - [0, 5, 16] - ], - [[0, 5, 26]], - [ - [0, 4, 37], - [0, 6, 4], - [0, 6, 13] - ], - [[0, 4, 19]], - [[0, 8, 9]] - ] - } - } -} +{"debugFiles":["fixture/for-loop-return.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,5],[2,3],[2,4]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,4,19]],[[0,4,22],[0,4,30]],[[0,5,8],[0,5,16]],[[0,5,26]],[[0,4,37],[0,6,4],[0,6,13]],[[0,4,19]],[[0,8,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/for_loop_return.wast.expect.json b/tests/cpp/lit/build/for_loop_return.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/for_loop_return.wast.expect.json +++ b/tests/cpp/lit/build/for_loop_return.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/if_else.wast.debug.json b/tests/cpp/lit/build/if_else.wast.debug.json index ad38ee2..2bdea0a 100644 --- a/tests/cpp/lit/build/if_else.wast.debug.json +++ b/tests/cpp/lit/build/if_else.wast.debug.json @@ -1,22 +1 @@ -{ - "debugFiles": ["fixture/if-else.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 13], - [0, 3, 15], - [0, 4, 6] - ], - [[0, 5, 13]], - [[0, 7, 13]], - [[0, 9, 2]] - ] - } - } -} +{"debugFiles":["fixture/if-else.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,2]],"index":0,"lineInfo":[[[0,2,13],[0,3,15],[0,4,6]],[[0,5,13]],[[0,7,13]],[[0,9,2]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/if_else.wast.expect.json b/tests/cpp/lit/build/if_else.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/if_else.wast.expect.json +++ b/tests/cpp/lit/build/if_else.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/if_elseif_else.wast.debug.json b/tests/cpp/lit/build/if_elseif_else.wast.debug.json index 47202dd..9d85273 100644 --- a/tests/cpp/lit/build/if_elseif_else.wast.debug.json +++ b/tests/cpp/lit/build/if_elseif_else.wast.debug.json @@ -1,39 +1 @@ -{ - "debugFiles": ["fixture/if-elseif-else.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 2], - [2, 3], - [2, 4] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 13], - [0, 3, 15], - [0, 4, 6], - [0, 4, 13] - ], - [ - [0, 5, 4], - [0, 5, 14] - ], - [ - [0, 6, 13], - [0, 6, 20] - ], - [ - [0, 7, 4], - [0, 7, 14] - ], - [ - [0, 9, 4], - [0, 9, 14] - ], - [[0, 11, 9]] - ] - } - } -} +{"debugFiles":["fixture/if-elseif-else.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,2],[2,3],[2,4]],"index":0,"lineInfo":[[[0,2,13],[0,3,15],[0,4,6],[0,4,13]],[[0,5,4],[0,5,14]],[[0,6,13],[0,6,20]],[[0,7,4],[0,7,14]],[[0,9,4],[0,9,14]],[[0,11,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/if_elseif_else.wast.expect.json b/tests/cpp/lit/build/if_elseif_else.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/if_elseif_else.wast.expect.json +++ b/tests/cpp/lit/build/if_elseif_else.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/if_elseif_empty_else.wast.debug.json b/tests/cpp/lit/build/if_elseif_empty_else.wast.debug.json index bed0cb5..2f6aa47 100644 --- a/tests/cpp/lit/build/if_elseif_empty_else.wast.debug.json +++ b/tests/cpp/lit/build/if_elseif_empty_else.wast.debug.json @@ -1,35 +1 @@ -{ - "debugFiles": ["fixture/if-elseif-empty-else.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 2], - [2, 3], - [2, 4] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 13], - [0, 3, 20], - [0, 4, 6], - [0, 4, 13] - ], - [ - [0, 5, 4], - [0, 5, 14] - ], - [ - [0, 6, 13], - [0, 6, 20] - ], - [ - [0, 7, 4], - [0, 7, 14] - ], - [[0, 9, 9]] - ] - } - } -} +{"debugFiles":["fixture/if-elseif-empty-else.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,2],[2,3],[2,4]],"index":0,"lineInfo":[[[0,2,13],[0,3,20],[0,4,6],[0,4,13]],[[0,5,4],[0,5,14]],[[0,6,13],[0,6,20]],[[0,7,4],[0,7,14]],[[0,9,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/if_elseif_empty_else.wast.expect.json b/tests/cpp/lit/build/if_elseif_empty_else.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/if_elseif_empty_else.wast.expect.json +++ b/tests/cpp/lit/build/if_elseif_empty_else.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/if_empty_else.wast.debug.json b/tests/cpp/lit/build/if_empty_else.wast.debug.json index dc227ea..a72518d 100644 --- a/tests/cpp/lit/build/if_empty_else.wast.debug.json +++ b/tests/cpp/lit/build/if_empty_else.wast.debug.json @@ -1,21 +1 @@ -{ - "debugFiles": ["fixture/if-empty-else.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 13], - [0, 3, 16], - [0, 4, 6] - ], - [[0, 5, 13]], - [[0, 7, 2]] - ] - } - } -} +{"debugFiles":["fixture/if-empty-else.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,2]],"index":0,"lineInfo":[[[0,2,13],[0,3,16],[0,4,6]],[[0,5,13]],[[0,7,2]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/if_empty_else.wast.expect.json b/tests/cpp/lit/build/if_empty_else.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/if_empty_else.wast.expect.json +++ b/tests/cpp/lit/build/if_empty_else.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/if_multi_condition.wast.debug.json b/tests/cpp/lit/build/if_multi_condition.wast.debug.json index ed4bd6a..b58a441 100644 --- a/tests/cpp/lit/build/if_multi_condition.wast.debug.json +++ b/tests/cpp/lit/build/if_multi_condition.wast.debug.json @@ -1,39 +1 @@ -{ - "debugFiles": ["fixture/if-multi-condition.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 2], - [3, 4], - [3, 5], - [6, 7], - [6, 8] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 13], - [0, 3, 15], - [0, 4, 6], - [0, 4, 14] - ], - [[0, 4, 14]], - [ - [0, 4, 19], - [0, 4, 27] - ], - [], - [[0, 4, 14]], - [ - [0, 4, 33], - [0, 4, 41] - ], - [], - [[0, 5, 13]], - [[0, 7, 13]], - [[0, 9, 9]] - ] - } - } -} +{"debugFiles":["fixture/if-multi-condition.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,2],[3,4],[3,5],[6,7],[6,8]],"index":0,"lineInfo":[[[0,2,13],[0,3,15],[0,4,6],[0,4,14]],[[0,4,14]],[[0,4,19],[0,4,27]],[],[[0,4,14]],[[0,4,33],[0,4,41]],[],[[0,5,13]],[[0,7,13]],[[0,9,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/if_multi_condition.wast.expect.json b/tests/cpp/lit/build/if_multi_condition.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/if_multi_condition.wast.expect.json +++ b/tests/cpp/lit/build/if_multi_condition.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/include_exclude.wast.debug.json b/tests/cpp/lit/build/include_exclude.wast.debug.json index ec1abbf..5791c54 100644 --- a/tests/cpp/lit/build/include_exclude.wast.debug.json +++ b/tests/cpp/lit/build/include_exclude.wast.debug.json @@ -1,28 +1 @@ -{ - "debugFiles": ["index.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 0, - "lineInfo": [ - [ - [0, 1, 1], - [0, 2, 1], - [0, 3, 1] - ], - [ - [0, 4, 1], - [0, 5, 1] - ], - [ - [0, 6, 1], - [0, 7, 1] - ], - [[0, 8, 1]] - ] - } - } -} +{"debugFiles":["index.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,2]],"index":0,"lineInfo":[[[0,1,1],[0,2,1],[0,3,1]],[[0,4,1],[0,5,1]],[[0,6,1],[0,7,1]],[[0,8,1]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/include_exclude.wast.expect.json b/tests/cpp/lit/build/include_exclude.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/include_exclude.wast.expect.json +++ b/tests/cpp/lit/build/include_exclude.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/multi_func.wast.debug.json b/tests/cpp/lit/build/multi_func.wast.debug.json index c82edfe..ca8f1ae 100644 --- a/tests/cpp/lit/build/multi_func.wast.debug.json +++ b/tests/cpp/lit/build/multi_func.wast.debug.json @@ -1,25 +1 @@ -{ - "debugFiles": ["assembly/add.ts"], - "debugInfos": { - "assembly/add/add": { "branchInfo": [], "index": 2, "lineInfo": [[[0, 3, 11]]] }, - "assembly/add/genA": { "branchInfo": [], "index": 0, "lineInfo": [[[0, 11, 11]]] }, - "assembly/add/main": { - "branchInfo": [ - [0, 1], - [0, 2] - ], - "index": 3, - "lineInfo": [ - [ - [0, 15, 12], - [0, 16, 8], - [0, 16, 12] - ], - [[0, 17, 12]], - [[0, 19, 12]], - [] - ] - }, - "assembly/add/min": { "branchInfo": [], "index": 1, "lineInfo": [[[0, 7, 11]]] } - } -} +{"debugFiles":["assembly/add.ts"],"debugInfos":{"assembly/add/add":{"branchInfo":[],"index":2,"lineInfo":[[[0,3,11]]]},"assembly/add/genA":{"branchInfo":[],"index":0,"lineInfo":[[[0,11,11]]]},"assembly/add/main":{"branchInfo":[[0,1],[0,2]],"index":3,"lineInfo":[[[0,15,12],[0,16,8],[0,16,12]],[[0,17,12]],[[0,19,12]],[]]},"assembly/add/min":{"branchInfo":[],"index":1,"lineInfo":[[[0,7,11]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/multi_func.wast.expect.json b/tests/cpp/lit/build/multi_func.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/multi_func.wast.expect.json +++ b/tests/cpp/lit/build/multi_func.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/multi_if_else.wast.debug.json b/tests/cpp/lit/build/multi_if_else.wast.debug.json index 4a80a0a..6c1c53c 100644 --- a/tests/cpp/lit/build/multi_if_else.wast.debug.json +++ b/tests/cpp/lit/build/multi_if_else.wast.debug.json @@ -1,45 +1 @@ -{ - "debugFiles": ["fixture/multi-if-else.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 2], - [2, 3], - [2, 4], - [4, 5], - [4, 6] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 13], - [0, 3, 15], - [0, 4, 6], - [0, 4, 13] - ], - [ - [0, 5, 4], - [0, 5, 14] - ], - [ - [0, 7, 8], - [0, 7, 15] - ], - [ - [0, 8, 6], - [0, 8, 16] - ], - [ - [0, 9, 15], - [0, 9, 22] - ], - [ - [0, 10, 6], - [0, 10, 16] - ], - [] - ] - } - } -} +{"debugFiles":["fixture/multi-if-else.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,2],[2,3],[2,4],[4,5],[4,6]],"index":0,"lineInfo":[[[0,2,13],[0,3,15],[0,4,6],[0,4,13]],[[0,5,4],[0,5,14]],[[0,7,8],[0,7,15]],[[0,8,6],[0,8,16]],[[0,9,15],[0,9,22]],[[0,10,6],[0,10,16]],[]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/multi_if_else.wast.expect.json b/tests/cpp/lit/build/multi_if_else.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/multi_if_else.wast.expect.json +++ b/tests/cpp/lit/build/multi_if_else.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/switch_case.wast.debug.json b/tests/cpp/lit/build/switch_case.wast.debug.json index 9b1141a..dc110ea 100644 --- a/tests/cpp/lit/build/switch_case.wast.debug.json +++ b/tests/cpp/lit/build/switch_case.wast.debug.json @@ -1,49 +1 @@ -{ - "debugFiles": ["fixture/switch-case.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 4], - [1, 2], - [1, 5], - [2, 3], - [2, 6] - ], - "index": 0, - "lineInfo": [ - [ - [0, 8, 13], - [0, 9, 14], - [0, 10, 10], - [0, 11, 9] - ], - [ - [0, 11, 9], - [0, 15, 9] - ], - [ - [0, 15, 9], - [0, 18, 9] - ], - [[0, 18, 9]], - [ - [0, 12, 6], - [0, 12, 15], - [0, 13, 6] - ], - [ - [0, 16, 13], - [0, 16, 21] - ], - [ - [0, 19, 6], - [0, 19, 15], - [0, 20, 6] - ], - [[0, 23, 13]], - [[0, 26, 9]] - ] - } - } -} +{"debugFiles":["fixture/switch-case.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,4],[1,2],[1,5],[2,3],[2,6]],"index":0,"lineInfo":[[[0,8,13],[0,9,14],[0,10,10],[0,11,9]],[[0,11,9],[0,15,9]],[[0,15,9],[0,18,9]],[[0,18,9]],[[0,12,6],[0,12,15],[0,13,6]],[[0,16,13],[0,16,21]],[[0,19,6],[0,19,15],[0,20,6]],[[0,23,13]],[[0,26,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/switch_case.wast.expect.json b/tests/cpp/lit/build/switch_case.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/switch_case.wast.expect.json +++ b/tests/cpp/lit/build/switch_case.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/switch_case_fallthrough.wast.debug.json b/tests/cpp/lit/build/switch_case_fallthrough.wast.debug.json index 4ff1773..725d2c8 100644 --- a/tests/cpp/lit/build/switch_case_fallthrough.wast.debug.json +++ b/tests/cpp/lit/build/switch_case_fallthrough.wast.debug.json @@ -1,45 +1 @@ -{ - "debugFiles": ["fixture/switch-case-fallthrough.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 4], - [1, 2], - [1, 5], - [2, 3], - [2, 6] - ], - "index": 0, - "lineInfo": [ - [ - [0, 8, 13], - [0, 9, 14], - [0, 10, 10], - [0, 11, 9] - ], - [ - [0, 11, 9], - [0, 15, 9] - ], - [ - [0, 15, 9], - [0, 16, 9] - ], - [[0, 16, 9]], - [ - [0, 12, 6], - [0, 12, 15], - [0, 13, 6] - ], - [[0, 10, 2]], - [ - [0, 17, 6], - [0, 17, 15], - [0, 18, 6] - ], - [[0, 21, 9]] - ] - } - } -} +{"debugFiles":["fixture/switch-case-fallthrough.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,4],[1,2],[1,5],[2,3],[2,6]],"index":0,"lineInfo":[[[0,8,13],[0,9,14],[0,10,10],[0,11,9]],[[0,11,9],[0,15,9]],[[0,15,9],[0,16,9]],[[0,16,9]],[[0,12,6],[0,12,15],[0,13,6]],[[0,10,2]],[[0,17,6],[0,17,15],[0,18,6]],[[0,21,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/switch_case_fallthrough.wast.expect.json b/tests/cpp/lit/build/switch_case_fallthrough.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/switch_case_fallthrough.wast.expect.json +++ b/tests/cpp/lit/build/switch_case_fallthrough.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/switch_case_rdefault.wast.debug.json b/tests/cpp/lit/build/switch_case_rdefault.wast.debug.json index 280a716..9d9927f 100644 --- a/tests/cpp/lit/build/switch_case_rdefault.wast.debug.json +++ b/tests/cpp/lit/build/switch_case_rdefault.wast.debug.json @@ -1,53 +1 @@ -{ - "debugFiles": ["fixture/switch-case-rdefault.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [0, 1], - [0, 5], - [1, 2], - [1, 6], - [2, 3], - [2, 7] - ], - "index": 0, - "lineInfo": [ - [ - [0, 8, 13], - [0, 9, 14], - [0, 10, 10], - [0, 14, 9] - ], - [ - [0, 14, 9], - [0, 18, 9] - ], - [ - [0, 18, 9], - [0, 22, 9] - ], - [[0, 22, 9]], - [ - [0, 12, 13], - [0, 12, 21] - ], - [ - [0, 15, 6], - [0, 15, 15], - [0, 16, 6] - ], - [ - [0, 19, 6], - [0, 19, 15], - [0, 20, 6] - ], - [ - [0, 23, 6], - [0, 23, 15], - [0, 24, 6] - ], - [[0, 27, 9]] - ] - } - } -} +{"debugFiles":["fixture/switch-case-rdefault.ts"],"debugInfos":{"main":{"branchInfo":[[0,1],[0,5],[1,2],[1,6],[2,3],[2,7]],"index":0,"lineInfo":[[[0,8,13],[0,9,14],[0,10,10],[0,14,9]],[[0,14,9],[0,18,9]],[[0,18,9],[0,22,9]],[[0,22,9]],[[0,12,13],[0,12,21]],[[0,15,6],[0,15,15],[0,16,6]],[[0,19,6],[0,19,15],[0,20,6]],[[0,23,6],[0,23,15],[0,24,6]],[[0,27,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/switch_case_rdefault.wast.expect.json b/tests/cpp/lit/build/switch_case_rdefault.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/switch_case_rdefault.wast.expect.json +++ b/tests/cpp/lit/build/switch_case_rdefault.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/while.wast.debug.json b/tests/cpp/lit/build/while.wast.debug.json index f57c598..f84f7df 100644 --- a/tests/cpp/lit/build/while.wast.debug.json +++ b/tests/cpp/lit/build/while.wast.debug.json @@ -1,33 +1 @@ -{ - "debugFiles": ["fixture/while.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 3] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 3, 25] - ], - [ - [0, 4, 9], - [0, 4, 17] - ], - [ - [0, 5, 4], - [0, 6, 4], - [0, 6, 13] - ], - [[0, 4, 2]], - [ - [0, 4, 2], - [0, 8, 9] - ] - ] - } - } -} +{"debugFiles":["fixture/while.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,3]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,3,25]],[[0,4,9],[0,4,17]],[[0,5,4],[0,6,4],[0,6,13]],[[0,4,2]],[[0,4,2],[0,8,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/while.wast.expect.json b/tests/cpp/lit/build/while.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/while.wast.expect.json +++ b/tests/cpp/lit/build/while.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/while_break.wast.debug.json b/tests/cpp/lit/build/while_break.wast.debug.json index be4d6e2..eacf70a 100644 --- a/tests/cpp/lit/build/while_break.wast.debug.json +++ b/tests/cpp/lit/build/while_break.wast.debug.json @@ -1,38 +1 @@ -{ - "debugFiles": ["fixture/while-break.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 5], - [2, 3], - [2, 4] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 3, 25] - ], - [ - [0, 4, 9], - [0, 4, 17] - ], - [ - [0, 5, 4], - [0, 6, 8], - [0, 6, 16] - ], - [[0, 6, 19]], - [ - [0, 7, 4], - [0, 7, 13] - ], - [[0, 4, 2]], - [[0, 4, 2]], - [[0, 9, 9]] - ] - } - } -} +{"debugFiles":["fixture/while-break.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,5],[2,3],[2,4]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,3,25]],[[0,4,9],[0,4,17]],[[0,5,4],[0,6,8],[0,6,16]],[[0,6,19]],[[0,7,4],[0,7,13]],[[0,4,2]],[[0,4,2]],[[0,9,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/while_break.wast.expect.json b/tests/cpp/lit/build/while_break.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/while_break.wast.expect.json +++ b/tests/cpp/lit/build/while_break.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/cpp/lit/build/while_continue.wast.debug.json b/tests/cpp/lit/build/while_continue.wast.debug.json index 3d2032a..44cdebe 100644 --- a/tests/cpp/lit/build/while_continue.wast.debug.json +++ b/tests/cpp/lit/build/while_continue.wast.debug.json @@ -1,40 +1 @@ -{ - "debugFiles": ["fixture/while-continue.ts"], - "debugInfos": { - "main": { - "branchInfo": [ - [1, 2], - [1, 5], - [2, 3], - [2, 4] - ], - "index": 0, - "lineInfo": [ - [ - [0, 2, 14], - [0, 3, 14], - [0, 3, 25] - ], - [ - [0, 4, 9], - [0, 4, 17] - ], - [ - [0, 5, 4], - [0, 6, 8], - [0, 6, 16] - ], - [[0, 6, 19]], - [ - [0, 7, 4], - [0, 7, 13] - ], - [[0, 4, 2]], - [ - [0, 4, 2], - [0, 9, 9] - ] - ] - } - } -} +{"debugFiles":["fixture/while-continue.ts"],"debugInfos":{"main":{"branchInfo":[[1,2],[1,5],[2,3],[2,4]],"index":0,"lineInfo":[[[0,2,14],[0,3,14],[0,3,25]],[[0,4,9],[0,4,17]],[[0,5,4],[0,6,8],[0,6,16]],[[0,6,19]],[[0,7,4],[0,7,13]],[[0,4,2]],[[0,4,2],[0,9,9]]]}}} \ No newline at end of file diff --git a/tests/cpp/lit/build/while_continue.wast.expect.json b/tests/cpp/lit/build/while_continue.wast.expect.json index 19765bd..ec747fa 100644 --- a/tests/cpp/lit/build/while_continue.wast.expect.json +++ b/tests/cpp/lit/build/while_continue.wast.expect.json @@ -1 +1 @@ -null +null \ No newline at end of file diff --git a/tests/ts/test/core/precompile.test.ts b/tests/ts/test/core/precompile.test.ts index a9971b9..e5000b5 100644 --- a/tests/ts/test/core/precompile.test.ts +++ b/tests/ts/test/core/precompile.test.ts @@ -1,17 +1,9 @@ import { join } from "node:path"; -import { fileURLToPath, URL } from "node:url"; import { precompile } from "../../../../src/core/precompile.js"; +import { projectRoot } from "../../../../src/utils/projectRoot.js"; test("listFunction transform", async () => { - const transformFunction = join( - fileURLToPath(new URL(".", import.meta.url)), - "..", - "..", - "..", - "..", - "transform", - "listFunctions.mjs" - ); + const transformFunction = join(projectRoot, "transform", "listFunctions.mjs"); const unittestPackages = await precompile(["tests/ts/fixture/transformFunction.ts"], [], [], transformFunction); expect(unittestPackages.testCodePaths).toEqual([]); expect(unittestPackages.sourceFunctions).toMatchSnapshot(); diff --git a/tests/ts/test/core/throwError.test.ts b/tests/ts/test/core/throwError.test.ts index cc9f4c5..00f95c1 100644 --- a/tests/ts/test/core/throwError.test.ts +++ b/tests/ts/test/core/throwError.test.ts @@ -1,7 +1,7 @@ import { join } from "node:path"; // eslint-disable-next-line node/no-extraneous-import import { jest } from "@jest/globals"; -import { fileURLToPath, URL } from "node:url"; +import { projectRoot } from "../../../../src/utils/projectRoot.js"; jest.unstable_mockModule("assemblyscript/asc", () => ({ main: jest.fn(() => { @@ -20,14 +20,7 @@ const { precompile } = await import("../../../../src/core/precompile.js"); const { compile } = await import("../../../../src/core/compile.js"); test("transform error", async () => { - const transformFunction = join( - fileURLToPath(new URL(".", import.meta.url)), - "..", - "..", - "..", - "transform", - "listFunctions.mjs" - ); + const transformFunction = join(projectRoot, "transform", "listFunctions.mjs"); expect(jest.isMockFunction(main)).toBeTruthy(); await expect(async () => { await precompile(["tests/ts/fixture/transformFunction.ts"], [], [], transformFunction); diff --git a/transform/tsconfig.json b/transform/tsconfig.json index bf55c83..6bce599 100644 --- a/transform/tsconfig.json +++ b/transform/tsconfig.json @@ -10,6 +10,6 @@ "assemblyscript/transform": ["../node_modules/assemblyscript/dist/transform"] } }, - "include": ["listFunctions.mts"], + "files": ["listFunctions.mts"], "exclude": [] } diff --git a/tsconfig.json b/tsconfig.json index f125d20..d3ec056 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "emitDeclarationOnly": false, "sourceMap": true, - "outDir": "./dist", + "outDir": "../dist", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true,