eliscript 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/bootstrap/README.md +26 -0
- package/bootstrap/backends/README.md +515 -0
- package/bootstrap/backends/async.eli +230 -0
- package/bootstrap/backends/binary.eli +173 -0
- package/bootstrap/backends/capabilities.eli +74 -0
- package/bootstrap/backends/elf.eli +246 -0
- package/bootstrap/backends/managed.eli +5976 -0
- package/bootstrap/backends/memory.eli +100 -0
- package/bootstrap/backends/native.eli +2000 -0
- package/bootstrap/backends/numeric.eli +1362 -0
- package/bootstrap/backends/optimize.eli +79 -0
- package/bootstrap/backends/regexp.eli +2263 -0
- package/bootstrap/backends/sha256.eli +138 -0
- package/bootstrap/backends/wasm.eli +1161 -0
- package/bootstrap/compiler/analyzer.eli +165 -77
- package/bootstrap/compiler/compiler.eli +43 -19
- package/bootstrap/compiler/emitter.eli +780 -170
- package/bootstrap/compiler/expander.eli +136 -45
- package/bootstrap/compiler/formatter.eli +8 -1
- package/bootstrap/compiler/ir.eli +148 -45
- package/bootstrap/compiler/lower.eli +29 -2
- package/bootstrap/compiler/project.eli +51 -21
- package/bootstrap/compiler/reader.eli +128 -36
- package/bootstrap/compiler/source-map.eli +46 -4
- package/bootstrap/compiler/symbol.eli +2 -1
- package/bootstrap/compiler/syntax.eli +47 -12
- package/bootstrap/compiler/transient-analysis.eli +40 -4
- package/bootstrap/host/check-cli-legacy.mjs +163 -0
- package/bootstrap/host/check-cli.mjs +59 -158
- package/bootstrap/host/check-cli.mjs.map +1 -0
- package/bootstrap/host/compiler-session.eli +1579 -0
- package/bootstrap/host/compiler-tools.eli +513 -0
- package/bootstrap/host/eliscript-cli-legacy.mjs +37 -0
- package/bootstrap/host/eliscript-cli.mjs +53 -33
- package/bootstrap/host/eliscript-cli.mjs.map +1 -0
- package/bootstrap/host/project-cli-legacy.mjs +295 -0
- package/bootstrap/host/project-cli.mjs +74 -289
- package/bootstrap/host/project-cli.mjs.map +1 -0
- package/bootstrap/host/project-legacy.mjs +1080 -0
- package/bootstrap/host/project.mjs +210 -1060
- package/bootstrap/host/project.mjs.map +1 -0
- package/bootstrap/runtime/UNICODE-LICENSE.txt +39 -0
- package/bootstrap/runtime/memory.eli +30379 -0
- package/browser/host.mjs +89 -0
- package/compiler/eliscript-analyzer.el +371 -4
- package/compiler/eliscript-cli.el +84 -1
- package/compiler/eliscript-emitter.el +1189 -256
- package/compiler/eliscript-expander.el +147 -10
- package/compiler/eliscript-ir-emitter.el +725 -208
- package/compiler/eliscript-lower.el +127 -1
- package/compiler/eliscript-portable.el +177 -51
- package/compiler/eliscript-project.el +20 -2
- package/compiler/eliscript-reader.el +141 -57
- package/compiler/eliscript-source-map.el +26 -12
- package/compiler/eliscript-transient-analysis.el +382 -19
- package/dist/backends/async.mjs +561 -0
- package/dist/backends/async.mjs.macro-origins.json +1 -0
- package/dist/backends/async.mjs.map +1 -0
- package/dist/backends/binary.mjs +381 -0
- package/dist/backends/binary.mjs.macro-origins.json +1 -0
- package/dist/backends/binary.mjs.map +1 -0
- package/dist/backends/capabilities.mjs +237 -0
- package/dist/backends/capabilities.mjs.macro-origins.json +1 -0
- package/dist/backends/capabilities.mjs.map +1 -0
- package/dist/backends/elf.mjs +540 -0
- package/dist/backends/elf.mjs.macro-origins.json +1 -0
- package/dist/backends/elf.mjs.map +1 -0
- package/dist/backends/managed.mjs +10616 -0
- package/dist/backends/managed.mjs.macro-origins.json +1 -0
- package/dist/backends/managed.mjs.map +1 -0
- package/dist/backends/memory.mjs +278 -0
- package/dist/backends/memory.mjs.macro-origins.json +1 -0
- package/dist/backends/memory.mjs.map +1 -0
- package/dist/backends/native.mjs +4099 -0
- package/dist/backends/native.mjs.macro-origins.json +1 -0
- package/dist/backends/native.mjs.map +1 -0
- package/dist/backends/numeric.mjs +2458 -0
- package/dist/backends/numeric.mjs.macro-origins.json +1 -0
- package/dist/backends/numeric.mjs.map +1 -0
- package/dist/backends/optimize.mjs +204 -0
- package/dist/backends/optimize.mjs.macro-origins.json +1 -0
- package/dist/backends/optimize.mjs.map +1 -0
- package/dist/backends/regexp.mjs +2033 -0
- package/dist/backends/regexp.mjs.macro-origins.json +1 -0
- package/dist/backends/regexp.mjs.map +1 -0
- package/dist/backends/sha256.mjs +310 -0
- package/dist/backends/sha256.mjs.macro-origins.json +1 -0
- package/dist/backends/sha256.mjs.map +1 -0
- package/dist/backends/wasm.mjs +2258 -0
- package/dist/backends/wasm.mjs.macro-origins.json +1 -0
- package/dist/backends/wasm.mjs.map +1 -0
- package/dist/bootstrap/analyzer.mjs +1908 -776
- package/dist/bootstrap/analyzer.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/analyzer.mjs.map +1 -1
- package/dist/bootstrap/compiler.mjs +450 -142
- package/dist/bootstrap/compiler.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/compiler.mjs.map +1 -1
- package/dist/bootstrap/emitter.mjs +3083 -909
- package/dist/bootstrap/emitter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/emitter.mjs.map +1 -1
- package/dist/bootstrap/expander.mjs +2887 -1233
- package/dist/bootstrap/expander.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/expander.mjs.map +1 -1
- package/dist/bootstrap/formatter.mjs +582 -218
- package/dist/bootstrap/formatter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/formatter.mjs.map +1 -1
- package/dist/bootstrap/ir.mjs +670 -116
- package/dist/bootstrap/ir.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/ir.mjs.map +1 -1
- package/dist/bootstrap/lower.mjs +866 -257
- package/dist/bootstrap/lower.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/lower.mjs.map +1 -1
- package/dist/bootstrap/package.json +1 -0
- package/dist/bootstrap/project.mjs +1168 -498
- package/dist/bootstrap/project.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/project.mjs.map +1 -1
- package/dist/bootstrap/reader.mjs +674 -175
- package/dist/bootstrap/reader.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/reader.mjs.map +1 -1
- package/dist/bootstrap/runtime/math.mjs +1117 -0
- package/dist/bootstrap/runtime/math.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs +10125 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case.mjs +281 -0
- package/dist/bootstrap/runtime/unicode-case.mjs.map +1 -0
- package/dist/bootstrap/source-map.mjs +430 -119
- package/dist/bootstrap/source-map.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/source-map.mjs.map +1 -1
- package/dist/bootstrap/symbol.mjs +229 -53
- package/dist/bootstrap/symbol.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/symbol.mjs.map +1 -1
- package/dist/bootstrap/syntax.mjs +205 -7
- package/dist/bootstrap/syntax.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/syntax.mjs.map +1 -1
- package/dist/bootstrap/transient-analysis.mjs +1185 -489
- package/dist/bootstrap/transient-analysis.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/transient-analysis.mjs.map +1 -1
- package/dist/browser/compiler.js +199 -6478
- package/dist/browser/host.mjs +446 -0
- package/dist/browser/loader.js +1 -0
- package/dist/browser/loader.mjs +231 -0
- package/dist/browser/worker.mjs +60 -0
- package/dist/compiler-artifact.json +1 -0
- package/dist/host/compiler-session.mjs +2980 -0
- package/dist/host/compiler-session.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-session.mjs.map +1 -0
- package/dist/host/compiler-tools.mjs +1084 -0
- package/dist/host/compiler-tools.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-tools.mjs.map +1 -0
- package/dist/literal-sources/runtime/core/collection-internals.eli +60 -0
- package/dist/literal-sources/runtime/core/collection.eli +579 -0
- package/dist/literal-sources/runtime/core/data-text.eli +290 -0
- package/dist/literal-sources/runtime/core/data.eli +22 -0
- package/dist/literal-sources/runtime/core/identifier.eli +44 -0
- package/dist/literal-sources/runtime/core/lazy-sequence.eli +131 -0
- package/dist/literal-sources/runtime/core/list.eli +19 -0
- package/dist/literal-sources/runtime/core/map.eli +9 -0
- package/dist/literal-sources/runtime/core/metadata-internals.eli +6 -0
- package/dist/literal-sources/runtime/core/metadata.eli +23 -0
- package/dist/literal-sources/runtime/core/object.eli +8 -0
- package/dist/literal-sources/runtime/core/order.eli +123 -0
- package/dist/literal-sources/runtime/core/persistent-kind.eli +28 -0
- package/dist/literal-sources/runtime/core/protocol-error.eli +32 -0
- package/dist/literal-sources/runtime/core/protocol.eli +28 -0
- package/dist/literal-sources/runtime/core/queue.eli +9 -0
- package/dist/literal-sources/runtime/core/record.eli +191 -0
- package/dist/literal-sources/runtime/core/regex.eli +158 -0
- package/dist/literal-sources/runtime/core/sequence.eli +305 -0
- package/dist/literal-sources/runtime/core/set-algebra.eli +28 -0
- package/dist/literal-sources/runtime/core/set.eli +9 -0
- package/dist/literal-sources/runtime/core/sorted.eli +408 -0
- package/dist/literal-sources/runtime/core/text.eli +14 -0
- package/dist/literal-sources/runtime/core/transducer.eli +268 -0
- package/dist/literal-sources/runtime/core/transient.eli +17 -0
- package/dist/literal-sources/runtime/core/truth.eli +4 -0
- package/dist/literal-sources/runtime/core/type.eli +232 -0
- package/dist/literal-sources/runtime/core/value-internals.eli +13 -0
- package/dist/literal-sources/runtime/core/value.eli +19 -0
- package/dist/literal-sources/runtime/core/vector.eli +20 -0
- package/dist/literal-sources/runtime/literals.eli +23 -0
- package/dist/literal-sources/runtime/testing/value.eli +6 -0
- package/dist/literal-sources/runtime/wire/http-rpc.eli +362 -0
- package/dist/literal-sources/runtime/wire/markdown.eli +275 -0
- package/dist/literal-sources/runtime/wire/schema.eli +193 -0
- package/dist/literal-sources/stdlib/bit.eli +36 -0
- package/dist/literal-sources/stdlib/core/data.eli +306 -0
- package/dist/literal-sources/stdlib/core/object.eli +89 -0
- package/dist/literal-sources/stdlib/core/protocol.eli +451 -0
- package/dist/literal-sources/stdlib/core/set.eli +312 -0
- package/dist/literal-sources/stdlib/core/text.eli +103 -0
- package/dist/literal-sources/stdlib/managed-literal-protocols.eli +483 -0
- package/dist/literal-sources/stdlib/managed-literals.eli +1414 -0
- package/dist/literal-sources/stdlib/managed-queue-state.eli +65 -0
- package/dist/literal-sources/stdlib/managed-sorted-state.eli +233 -0
- package/dist/literal-sources/stdlib/managed-transient-state.eli +348 -0
- package/dist/literal-sources/stdlib/managed-value-state.eli +153 -0
- package/dist/literal-sources/stdlib/managed-vector-view-state.eli +102 -0
- package/dist/literal-sources/stdlib/persistent-list.eli +145 -0
- package/dist/literal-sources/stdlib/persistent-map.eli +724 -0
- package/dist/literal-sources/stdlib/persistent-set.eli +236 -0
- package/dist/literal-sources/stdlib/persistent-vector.eli +359 -0
- package/dist/literal-sources/stdlib/value.eli +325 -0
- package/dist/package.json +10 -0
- package/dist/runtime/math.mjs +1116 -0
- package/dist/runtime/math.mjs.macro-origins.json +1 -0
- package/dist/runtime/math.mjs.map +1 -0
- package/dist/runtime/unicode-case-data.mjs +10124 -0
- package/dist/runtime/unicode-case-data.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/runtime/unicode-case.mjs +280 -0
- package/dist/runtime/unicode-case.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case.mjs.map +1 -0
- package/dist/runtime.eli +30379 -0
- package/dist/stage3-release.json +1 -0
- package/editor/README.md +1 -1
- package/editor/eliscript-mode.el +1 -1
- package/editor/eliscript-repl.el +1 -1
- package/package.json +97 -10
- package/platform/http.mjs +20 -0
- package/runtime/array-text.mjs +159 -0
- package/runtime/core/map-internals.mjs +27 -9
- package/runtime/core/object-impl.mjs +26 -17
- package/runtime/core/object-impl.mjs.map +1 -1
- package/runtime/core/protocol-impl.mjs +682 -255
- package/runtime/core/protocol-impl.mjs.map +1 -1
- package/runtime/core/protocol.mjs +4 -0
- package/runtime/core/record.mjs +23 -2
- package/runtime/core/regex.mjs +4 -0
- package/runtime/core/sorted.mjs +53 -0
- package/runtime/core/text-impl.mjs +167 -48
- package/runtime/core/text-impl.mjs.map +1 -1
- package/runtime/core/type.mjs +75 -3
- package/runtime/core/vector.mjs +6 -0
- package/runtime/math.eli +429 -0
- package/runtime/math.mjs +1116 -0
- package/runtime/math.mjs.map +1 -0
- package/runtime/number-radix.mjs +105 -0
- package/runtime/unicode-case-data.eli +29 -0
- package/runtime/unicode-case-data.mjs +10124 -0
- package/runtime/unicode-case-data.mjs.map +1 -0
- package/runtime/unicode-case.eli +100 -0
- package/runtime/unicode-case.mjs +280 -0
- package/runtime/unicode-case.mjs.map +1 -0
- package/runtime/wire/http-rpc.mjs +168 -0
- package/runtime/wire/markdown.mjs +196 -0
- package/runtime/wire/schema.mjs +109 -0
- package/stdlib/README.md +54 -0
- package/stdlib/core/protocol.eli +81 -17
- package/stdlib/core/seq.eli +1 -1
- package/stdlib/core/zipper.eli +114 -47
- package/stdlib/gepo.eli +12 -0
- package/stdlib/interop/js.eli +56 -15
- package/stdlib/managed-literal-protocols.eli +483 -0
- package/stdlib/managed-literals.eli +1414 -0
- package/stdlib/managed-protocol-error.eli +32 -0
- package/stdlib/managed-queue-state.eli +65 -0
- package/stdlib/managed-runtime-collection-internals.eli +60 -0
- package/stdlib/managed-runtime-collection.eli +579 -0
- package/stdlib/managed-runtime-data-text.eli +290 -0
- package/stdlib/managed-runtime-data.eli +22 -0
- package/stdlib/managed-runtime-identifier.eli +44 -0
- package/stdlib/managed-runtime-lazy-sequence.eli +131 -0
- package/stdlib/managed-runtime-list.eli +19 -0
- package/stdlib/managed-runtime-literals.eli +23 -0
- package/stdlib/managed-runtime-map.eli +9 -0
- package/stdlib/managed-runtime-metadata-internals.eli +6 -0
- package/stdlib/managed-runtime-metadata.eli +23 -0
- package/stdlib/managed-runtime-object.eli +8 -0
- package/stdlib/managed-runtime-order.eli +123 -0
- package/stdlib/managed-runtime-persistent-kind.eli +28 -0
- package/stdlib/managed-runtime-protocol.eli +28 -0
- package/stdlib/managed-runtime-queue.eli +9 -0
- package/stdlib/managed-runtime-record.eli +191 -0
- package/stdlib/managed-runtime-regex.eli +158 -0
- package/stdlib/managed-runtime-sequence.eli +305 -0
- package/stdlib/managed-runtime-set-algebra.eli +28 -0
- package/stdlib/managed-runtime-set.eli +9 -0
- package/stdlib/managed-runtime-sorted.eli +408 -0
- package/stdlib/managed-runtime-text.eli +14 -0
- package/stdlib/managed-runtime-transducer.eli +268 -0
- package/stdlib/managed-runtime-transient.eli +17 -0
- package/stdlib/managed-runtime-truth.eli +4 -0
- package/stdlib/managed-runtime-type.eli +232 -0
- package/stdlib/managed-runtime-value-internals.eli +13 -0
- package/stdlib/managed-runtime-value.eli +19 -0
- package/stdlib/managed-runtime-vector.eli +20 -0
- package/stdlib/managed-sorted-state.eli +233 -0
- package/stdlib/managed-testing-value.eli +6 -0
- package/stdlib/managed-transient-state.eli +348 -0
- package/stdlib/managed-value-state.eli +153 -0
- package/stdlib/managed-vector-view-state.eli +102 -0
- package/stdlib/managed-wire-http-rpc.eli +362 -0
- package/stdlib/managed-wire-markdown.eli +275 -0
- package/stdlib/managed-wire-schema.eli +193 -0
- package/stdlib/mdp.eli +7 -0
- package/stdlib/mds.eli +4 -0
- package/stdlib/persistent-vector.eli +23 -6
- package/tools/acceptance/check-legacy.mjs +687 -0
- package/tools/acceptance/check.eli +431 -0
- package/tools/acceptance/compile-evidence.el +49 -0
- package/tools/acceptance/finalize-legacy.mjs +498 -0
- package/tools/acceptance/finalize.eli +270 -0
- package/tools/backends/benchmark.mjs +175 -0
- package/tools/backends/build.mjs +135 -0
- package/tools/backends/compile.mjs +94 -0
- package/tools/backends/compiler-bootstrap.mjs +1001 -0
- package/tools/backends/compiler-browser.mjs +361 -0
- package/tools/backends/compiler-build.mjs +1628 -0
- package/tools/backends/compiler-cli-legacy.mjs +334 -0
- package/tools/backends/compiler-cli.mjs +29 -0
- package/tools/backends/compiler-corpus-bit.mjs +234 -0
- package/tools/backends/compiler-corpus-cli-adapters-legacy.mjs +362 -0
- package/tools/backends/compiler-corpus-cli-adapters.mjs +247 -0
- package/tools/backends/compiler-corpus-debugging.mjs +221 -0
- package/tools/backends/compiler-corpus-emitter.mjs +324 -0
- package/tools/backends/compiler-corpus-evaluation-adapters.mjs +65 -0
- package/tools/backends/compiler-corpus-execution-legacy.mjs +769 -0
- package/tools/backends/compiler-corpus-execution.mjs +3324 -0
- package/tools/backends/compiler-corpus-fuzz.mjs +229 -0
- package/tools/backends/compiler-corpus-generations.mjs +208 -0
- package/tools/backends/compiler-corpus-host-context-legacy.mjs +114 -0
- package/tools/backends/compiler-corpus-host-context.mjs +550 -0
- package/tools/backends/compiler-corpus-identity-host.mjs +553 -0
- package/tools/backends/compiler-corpus-identity-value-adapters-legacy.mjs +298 -0
- package/tools/backends/compiler-corpus-identity-value-adapters.mjs +69 -0
- package/tools/backends/compiler-corpus-isolated-exports.mjs +21 -0
- package/tools/backends/compiler-corpus-legacy.mjs +1155 -0
- package/tools/backends/compiler-corpus-literal-provider.mjs +282 -0
- package/tools/backends/compiler-corpus-managed-adapters-legacy.mjs +334 -0
- package/tools/backends/compiler-corpus-managed-adapters.mjs +937 -0
- package/tools/backends/compiler-corpus-managed-cases.mjs +179 -0
- package/tools/backends/compiler-corpus-managed-fixtures-legacy.mjs +879 -0
- package/tools/backends/compiler-corpus-managed-fixtures.mjs +1287 -0
- package/tools/backends/compiler-corpus-matchers.mjs +173 -0
- package/tools/backends/compiler-corpus-original-program.mjs +612 -0
- package/tools/backends/compiler-corpus-process.mjs +765 -0
- package/tools/backends/compiler-corpus-program-driver.mjs +306 -0
- package/tools/backends/compiler-corpus-project-adapters-legacy.mjs +497 -0
- package/tools/backends/compiler-corpus-project-adapters.mjs +340 -0
- package/tools/backends/compiler-corpus-project-entry-host.mjs +511 -0
- package/tools/backends/compiler-corpus-project-transport.mjs +151 -0
- package/tools/backends/compiler-corpus-raw-fixture-observer.mjs +1438 -0
- package/tools/backends/compiler-corpus-raw-language-fixtures.mjs +1456 -0
- package/tools/backends/compiler-corpus-raw-math-fixture.mjs +346 -0
- package/tools/backends/compiler-corpus-raw-special-fixtures.mjs +523 -0
- package/tools/backends/compiler-corpus-reference-legacy.mjs +263 -0
- package/tools/backends/compiler-corpus-reference.mjs +241 -0
- package/tools/backends/compiler-corpus-runtime-adapters-legacy.mjs +843 -0
- package/tools/backends/compiler-corpus-runtime-adapters.mjs +663 -0
- package/tools/backends/compiler-corpus-source-archive.mjs +206 -0
- package/tools/backends/compiler-corpus-tools-artifact-adapters.mjs +410 -0
- package/tools/backends/compiler-corpus-tools-cli.mjs +363 -0
- package/tools/backends/compiler-corpus-tools-reference.mjs +264 -0
- package/tools/backends/compiler-corpus.mjs +2054 -0
- package/tools/backends/compiler-debug.mjs +142 -0
- package/tools/backends/compiler-matrix.mjs +1955 -0
- package/tools/backends/compiler-metadata.mjs +203 -0
- package/tools/backends/compiler-package-browser.mjs +120 -0
- package/tools/backends/compiler-package-legacy.mjs +654 -0
- package/tools/backends/compiler-package.mjs +464 -0
- package/tools/backends/compiler-project.mjs +126 -0
- package/tools/backends/compiler-session.mjs +843 -0
- package/tools/backends/compiler-sha256.mjs +152 -0
- package/tools/backends/compiler-unicode-profile-host.mjs +196 -0
- package/tools/backends/compiler-worker.mjs +573 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs +919 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -0
- package/tools/backends/dist/managed-ir-inventory.mjs +488 -0
- package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -0
- package/tools/backends/dist/record-grid.mjs +1256 -0
- package/tools/backends/dist/record-grid.mjs.map +1 -0
- package/tools/backends/dist/release-cli.mjs +460 -0
- package/tools/backends/dist/release-cli.mjs.map +1 -0
- package/tools/backends/dist/run-artifact.mjs +517 -0
- package/tools/backends/dist/run-artifact.mjs.map +1 -0
- package/tools/backends/eliscript/compiler-corpus-bit.eli +77 -0
- package/tools/backends/eliscript/compiler-corpus-debugging.eli +70 -0
- package/tools/backends/eliscript/compiler-corpus-project-entry-host.eli +256 -0
- package/tools/backends/managed-foreign-binding.mjs +497 -0
- package/tools/backends/managed-host-legacy.mjs +1181 -0
- package/tools/backends/managed-host-lifecycle.mjs +310 -0
- package/tools/backends/managed-host-object-provider.mjs +155 -0
- package/tools/backends/managed-host-object-realm.mjs +797 -0
- package/tools/backends/managed-host-proxy.mjs +71 -0
- package/tools/backends/managed-host-runtime.mjs +5868 -0
- package/tools/backends/managed-host.mjs +716 -0
- package/tools/backends/managed-module-graph-legacy.mjs +308 -0
- package/tools/backends/managed-module-graph.mjs +694 -0
- package/tools/backends/managed-runtime-host-legacy.mjs +195 -0
- package/tools/backends/managed-runtime.mjs +939 -0
- package/tools/backends/managed-source-view-legacy.mjs +332 -0
- package/tools/backends/managed-source-view.mjs +959 -0
- package/tools/backends/memory-runtime.mjs +100 -0
- package/tools/backends/native-benchmark.mjs +88 -0
- package/tools/backends/native-managed-runtime.mjs +677 -0
- package/tools/backends/native-memory.mjs +768 -0
- package/tools/backends/native-node-memory.mjs +142 -0
- package/tools/backends/native-node-runner.mjs +99 -0
- package/tools/backends/native-node-watchdog.mjs +19 -0
- package/tools/backends/native-node-worker.mjs +75 -0
- package/tools/backends/stage3-targets.mjs +486 -0
- package/tools/bootstrap-command.el +13 -0
- package/tools/bootstrap-runtime.el +101 -0
- package/tools/bootstrap-seed.el +55 -0
- package/tools/project/check-cli.eli +31 -0
- package/tools/project/project-cli.eli +42 -0
- package/tools/project/project.eli +122 -0
- package/tools/runtime/unicode-case-profiles.mjs +13 -0
- package/tools/runtime/unicode-case-runtime.el +57 -0
- package/tools/testing/source-debugging-corpus-host.eli +16 -0
- package/tools/testing/source-debugging.eli +139 -0
- package/tools/testing/stdlib-bit-corpus-host.eli +21 -0
- package/tools/testing/stdlib-bit-corpus-host.mjs +118 -0
- package/tools/testing/stdlib-bit.eli +104 -0
- package/tools/testing/stdlib-bit.mjs +255 -0
- package/bin/eliscript-bootstrap +0 -15
|
@@ -0,0 +1,1287 @@
|
|
|
1
|
+
// Generated by Eliscript. Do not edit.
|
|
2
|
+
import { tdz as __eliscript_tdz_error, immutable as __eliscript_const_error } from "data:text/javascript;base64,Y29uc3QgRSA9IFJlZmVyZW5jZUVycm9yOyBjb25zdCBUID0gVHlwZUVycm9yOyBleHBvcnQgZnVuY3Rpb24gdGR6KG5hbWUpIHsgdGhyb3cgbmV3IEUoIkNhbm5vdCBhY2Nlc3MgJyIgKyBuYW1lICsgIicgYmVmb3JlIGluaXRpYWxpemF0aW9uIik7IH0gZXhwb3J0IGZ1bmN0aW9uIGltbXV0YWJsZSgpIHsgdGhyb3cgbmV3IFQoIkFzc2lnbm1lbnQgdG8gY29uc3RhbnQgdmFyaWFibGUuIik7IH0K";
|
|
3
|
+
var __eliscript_tdz_ready_0;
|
|
4
|
+
function __eliscript_tdz_read_0() { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("readOriginalManagedStaticTemplate"); return readOriginalManagedStaticTemplate; }
|
|
5
|
+
function __eliscript_tdz_write_0(__eliscript_tdz_value_0) { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("readOriginalManagedStaticTemplate"); return __eliscript_const_error(); }
|
|
6
|
+
var __eliscript_tdz_ready_1;
|
|
7
|
+
function __eliscript_tdz_read_1() { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("buildBackends"); return buildBackends; }
|
|
8
|
+
function __eliscript_tdz_write_1(__eliscript_tdz_value_1) { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("buildBackends"); return __eliscript_const_error(); }
|
|
9
|
+
var __eliscript_tdz_ready_2;
|
|
10
|
+
function __eliscript_tdz_read_2() { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("bindOriginalManagedSourceEvidence"); return bindOriginalManagedSourceEvidence; }
|
|
11
|
+
function __eliscript_tdz_write_2(__eliscript_tdz_value_2) { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("bindOriginalManagedSourceEvidence"); return __eliscript_const_error(); }
|
|
12
|
+
var __eliscript_tdz_ready_3;
|
|
13
|
+
function __eliscript_tdz_read_3() { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("entry_fixture"); return entry_fixture; }
|
|
14
|
+
function __eliscript_tdz_write_3(__eliscript_tdz_value_3) { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("entry_fixture"); return __eliscript_const_error(); }
|
|
15
|
+
var __eliscript_tdz_ready_4;
|
|
16
|
+
function __eliscript_tdz_read_4() { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("state_fixture"); return state_fixture; }
|
|
17
|
+
function __eliscript_tdz_write_4(__eliscript_tdz_value_4) { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("state_fixture"); return __eliscript_const_error(); }
|
|
18
|
+
var __eliscript_tdz_ready_5;
|
|
19
|
+
function __eliscript_tdz_read_5() { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("host_source_file"); return host_source_file; }
|
|
20
|
+
function __eliscript_tdz_write_5(__eliscript_tdz_value_5) { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("host_source_file"); return __eliscript_const_error(); }
|
|
21
|
+
var __eliscript_tdz_ready_6;
|
|
22
|
+
function __eliscript_tdz_read_6() { if (__eliscript_tdz_ready_6 !== true) __eliscript_tdz_error("host_bridge_files"); return host_bridge_files; }
|
|
23
|
+
function __eliscript_tdz_write_6(__eliscript_tdz_value_6) { if (__eliscript_tdz_ready_6 !== true) __eliscript_tdz_error("host_bridge_files"); return __eliscript_const_error(); }
|
|
24
|
+
var __eliscript_tdz_ready_7;
|
|
25
|
+
function __eliscript_tdz_read_7() { if (__eliscript_tdz_ready_7 !== true) __eliscript_tdz_error("browser_suite_plans"); return browser_suite_plans; }
|
|
26
|
+
function __eliscript_tdz_write_7(__eliscript_tdz_value_7) { if (__eliscript_tdz_ready_7 !== true) __eliscript_tdz_error("browser_suite_plans"); return __eliscript_const_error(); }
|
|
27
|
+
var __eliscript_tdz_ready_8;
|
|
28
|
+
function __eliscript_tdz_read_8() { if (__eliscript_tdz_ready_8 !== true) __eliscript_tdz_error("final_fixture_plans"); return final_fixture_plans; }
|
|
29
|
+
function __eliscript_tdz_write_8(__eliscript_tdz_value_8) { if (__eliscript_tdz_ready_8 !== true) __eliscript_tdz_error("final_fixture_plans"); return __eliscript_const_error(); }
|
|
30
|
+
var __eliscript_tdz_ready_9;
|
|
31
|
+
function __eliscript_tdz_read_9() { if (__eliscript_tdz_ready_9 !== true) __eliscript_tdz_error("raw_basic_families"); return raw_basic_families; }
|
|
32
|
+
function __eliscript_tdz_write_9(__eliscript_tdz_value_9) { if (__eliscript_tdz_ready_9 !== true) __eliscript_tdz_error("raw_basic_families"); return __eliscript_const_error(); }
|
|
33
|
+
var __eliscript_tdz_ready_10;
|
|
34
|
+
function __eliscript_tdz_read_10() { if (__eliscript_tdz_ready_10 !== true) __eliscript_tdz_error("raw_special_families"); return raw_special_families; }
|
|
35
|
+
function __eliscript_tdz_write_10(__eliscript_tdz_value_10) { if (__eliscript_tdz_ready_10 !== true) __eliscript_tdz_error("raw_special_families"); return __eliscript_const_error(); }
|
|
36
|
+
var __eliscript_tdz_ready_11;
|
|
37
|
+
function __eliscript_tdz_read_11() { if (__eliscript_tdz_ready_11 !== true) __eliscript_tdz_error("raw_language_families"); return raw_language_families; }
|
|
38
|
+
function __eliscript_tdz_write_11(__eliscript_tdz_value_11) { if (__eliscript_tdz_ready_11 !== true) __eliscript_tdz_error("raw_language_families"); return __eliscript_const_error(); }
|
|
39
|
+
import "eliscript/runtime/unicode-case.mjs";
|
|
40
|
+
import { c as __eliscript_at, d as __eliscript_at_direct } from "data:text/javascript;base64,dmFyIG09UmVmbGVjdC5hcHBseSx0dD1OdW1iZXIucHJvdG90eXBlLnZhbHVlT2Ysaj1OdW1iZXIucHJvdG90eXBlLnRvU3RyaW5nLFU9TnVtYmVyLG50PU9iamVjdC5jcmVhdGUsaD1CaWdJbnQsZXQ9RGF0YVZpZXcsb3Q9QXJyYXlCdWZmZXIsaXQ9RGF0YVZpZXcucHJvdG90eXBlLnNldEZsb2F0NjQsSj1EYXRhVmlldy5wcm90b3R5cGUuZ2V0VWludDMyLHJ0PVJhbmdlRXJyb3I7ZnVuY3Rpb24gY3QodCxuKXtsZXQgZT1oKG4pLG89aCh0KSxpPSIiO2lmKG88MG4pbz0tbztkb3tsZXQgZj1vJWU7aT0iMDEyMzQ1Njc4OWFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IltVKGYpXStpLG8vPWV9d2hpbGUobyE9PTBuKTtyZXR1cm4gdDwwPyItIitpOml9ZnVuY3Rpb24gc3QodCxuKXtsZXQgZT1uZXcgZXQobmV3IG90KDgpKTttKGl0LGUsWzAsdCwhMV0pO2xldCBvPW0oSixlLFswLCExXSksaT1tKEosZSxbNCwhMV0pLGY9bz4+PjIwJjIwNDcsYj1vJjEwNDg1NzUscD1vPj4+MzEscj1oKGIpPDwzMm58aChpKTtpZihmIT09MClyKz0xbjw8NTJuO3I8PD0ybjtsZXQgbD00bix1PWY+MSYmYj09PTAmJmk9PT0wPzFuOjJuLGs9Mm47aWYoZj49MTA3NSl7bGV0IGM9aChmLTEwNzUpO3I8PD1jLHU8PD1jLGs8PD1jfWVsc2UgbDw8PWgoZj09PTA/MTA3NDoxMDc1LWYpO2xldCBkPWgobiksZz1udChudWxsKSxhPTAsUz0wLEQ9MDtpZihyPGwpd2hpbGUocjxsKXtpZihyKjJuPmwmJnIraz5sKWJyZWFrO3IqPWQsdSo9ZCxrKj1kLFMtLX1lbHNlIHdoaWxlKHI+PWwqZClsKj1kLFMrKztmb3IoOzspe2xldCBjPVUoci9sKTtyJT1sO2xldCBJPXI8dSx4PXIraz5sO2dbYSsrXT1jLEQ9RCoobiYxKStjJjE7bGV0IHE9cioybixQPXE+bHx8cT09PWwmJkQ9PT0xO2lmKFAmJnh8fCFQJiZJKXtpZihQKXtsZXQgUj1hLEI9ITA7d2hpbGUoUj4wJiZCKXtSLS07bGV0IEg9Z1tSXSsxO2lmKEg9PT1uKWdbUl09MDtlbHNlIGdbUl09SCxCPSExfWlmKEIpZ1swXT0xLFMrK31icmVha31pZihhPj02NCl0aHJvdyBuZXcgcnQoIm51bWJlciByYWRpeCBmb3JtYXR0aW5nIGRpZCBub3QgY29udmVyZ2UiKTtyKj1kLHUqPWQsayo9ZH13aGlsZShhPjEmJmdbYS0xXT09PTApYS0tO2xldCB3PSIiO2lmKFM8MCl7dz0iMC4iO2ZvcihsZXQgYz0wO2M8LTEtUztjKyspdys9IjAiO2ZvcihsZXQgYz0wO2M8YTtjKyspdys9IjAxMjM0NTY3ODlhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5eiJbZ1tjXV19ZWxzZXtsZXQgYz1TKzEsST1jPmE/YzphO2ZvcihsZXQgeD0wO3g8STt4Kyspe2lmKHg9PT1jJiZjPGEpdys9Ii4iO3crPXg8YT8iMDEyMzQ1Njc4OWFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IltnW3hdXToiMCJ9fXJldHVybiBwPyItIit3Ond9ZnVuY3Rpb24gRyh0LG4pe2xldCBlO3RyeXtlPW0odHQsdCxbXSl9Y2F0Y2h7cmV0dXJuIG0oaix0LFtuXSl9bGV0IG89MTA7aWYobiE9PXZvaWQgMCl7bGV0IGk9K247aWYobz1pIT09aT8wOmktaSUxLG88Mnx8bz4zNnx8byE9PW8pcmV0dXJuIG0oaixlLFtvXSl9aWYobz09PTEwfHxlPT09MHx8ZSE9PWV8fGU9PT0xLzB8fGU9PT0tMS8wKXJldHVybiBtKGosZSxbMTBdKTtyZXR1cm4gZSUxPT09MD9jdChlLG8pOnN0KGUsbyl9dmFyIHM9UmVmbGVjdC5hcHBseSxNPUZ1bmN0aW9uLnByb3RvdHlwZS5jYWxsLE49RnVuY3Rpb24ucHJvdG90eXBlLmFwcGx5LEU9RnVuY3Rpb24ucHJvdG90eXBlLmJpbmQsVD1PYmplY3QuZGVmaW5lUHJvcGVydHksbHQ9T2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcixmdD1PYmplY3QuZ2V0UHJvdG90eXBlT2YsdXQ9T2JqZWN0LnNldFByb3RvdHlwZU9mLGF0PVJlZmxlY3Qub3duS2V5cyxwdD1TeW1ib2wuaGFzSW5zdGFuY2UsVj1BcnJheS5pc0FycmF5LEs9QXJyYXkucHJvdG90eXBlLmpvaW4sej1BcnJheS5wcm90b3R5cGUudG9TdHJpbmcseXQ9T2JqZWN0LnByb3RvdHlwZS50b1N0cmluZyxidD1TdHJpbmcsQz1UeXBlRXJyb3IsZHQ9U3ltYm9sLnRvUHJpbWl0aXZlLGd0PVdlYWtTZXQucHJvdG90eXBlLmhhcyx3dD1XZWFrU2V0LnByb3RvdHlwZS5hZGQseHQ9V2Vha1NldC5wcm90b3R5cGUuZGVsZXRlLEY9bmV3IFdlYWtTZXQsTz1udWxsLFc9KHQpPT50IT09bnVsbCYmKHR5cGVvZiB0PT09Im9iamVjdCJ8fHR5cGVvZiB0PT09ImZ1bmN0aW9uInx8dHlwZW9mIHQ+InUiJiZ0IT09dm9pZCAwKSxBPSh0KT0+dHlwZW9mIHQ9PT0iZnVuY3Rpb24ifHx0eXBlb2YgdD4idSImJnQhPT12b2lkIDA7ZnVuY3Rpb24gaHQoKXtsZXQgbj1uZXcgQygiY3ljbGljIGFycmF5IHRleHQgY29udmVyc2lvbiIpO3Rocm93IG4uZWxpc2NyaXB0RGlhZ25vc3RpYz17Zm9ybWF0OiJlbGlzY3JpcHQtZGlhZ25vc3RpYyIsdmVyc2lvbjoxLGNvZGU6IkVMSS1SVDAwMDkiLHNldmVyaXR5OiJlcnJvciIscGhhc2U6InJ1bnRpbWUiLG1lc3NhZ2U6ImN5Y2xpYyBhcnJheSB0ZXh0IGNvbnZlcnNpb24ifSxufWZ1bmN0aW9uIG10KHQpe2lmKCFXKHQpKXJldHVybiB0O2xldCBuPXRbZHRdO2lmKG4hPT12b2lkIDAmJm4hPT1udWxsKXtsZXQgZT1zKG4sdCxbInN0cmluZyJdKTtpZighVyhlKSlyZXR1cm4gZTt0aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgb2JqZWN0IHRvIHByaW1pdGl2ZSB2YWx1ZSIpfWZvcihsZXQgZT0wO2U8MjtlKyspe2xldCBvPXRbZT09PTA/InRvU3RyaW5nIjoidmFsdWVPZiJdO2lmKEEobykpe2xldCBpPW89PT16JiZWKHQpP3YodCk6cyhvLHQsW10pO2lmKCFXKGkpKXJldHVybiBpfX10aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgb2JqZWN0IHRvIHByaW1pdGl2ZSB2YWx1ZSIpfWZ1bmN0aW9uIFEodCl7bGV0IG49bXQodCk7aWYodHlwZW9mIG49PT0ic3ltYm9sIil0aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgYSBTeW1ib2wgdmFsdWUgdG8gYSBzdHJpbmciKTtyZXR1cm4gYnQobil9ZnVuY3Rpb24gXyh0LG4pe2xldCBlPSt0Lmxlbmd0aCxvPWUhPT1lfHxlPD0wPzA6ZT49OTAwNzE5OTI1NDc0MDk5MT85MDA3MTk5MjU0NzQwOTkxOmUtZSUxLGk9bj09PXZvaWQgMD8iLCI6UShuKSxmPU89PT1udWxsO2lmKGYpTz10O2Vsc2V7aWYodD09PU98fHMoZ3QsRixbdF0pKWh0KCk7cyh3dCxGLFt0XSl9dHJ5e2xldCBiPSIiO2ZvcihsZXQgcD0wO3A8bztwKyspe2lmKHApYis9aTtsZXQgcj10W3BdO2lmKHIhPT1udWxsJiZyIT09dm9pZCAwKWIrPVEocil9cmV0dXJuIGJ9ZmluYWxseXtpZihmKU89bnVsbDtlbHNlIHMoeHQsRixbdF0pfX1mdW5jdGlvbiB2KHQpe2xldCBuPXQuam9pbjtyZXR1cm4gQShuKT9uPT09Sz9fKHQsdm9pZCAwKTpzKG4sdCxbXSk6cyh5dCx0LFtdKX1mdW5jdGlvbiB5KHQsbil7cmV0dXJuIG48dC5sZW5ndGg/dFtuXTp2b2lkIDB9ZnVuY3Rpb24gWCh0LG4pe2xldCBlPVtdO2ZvcihsZXQgbz1uO288dC5sZW5ndGg7bysrKVQoZSxlLmxlbmd0aCx7dmFsdWU6dFtvXSx3cml0YWJsZTohMCxlbnVtZXJhYmxlOiEwLGNvbmZpZ3VyYWJsZTohMH0pO3JldHVybiBlfWZ1bmN0aW9uIFN0KHQsbil7bGV0IGU9W107Zm9yKGxldCBvPTA7bzx0Lmxlbmd0aCtuLmxlbmd0aDtvKyspVChlLG8se3ZhbHVlOm88dC5sZW5ndGg/dFtvXTpuW28tdC5sZW5ndGhdLHdyaXRhYmxlOiEwLGVudW1lcmFibGU6ITAsY29uZmlndXJhYmxlOiEwfSk7cmV0dXJuIGV9ZnVuY3Rpb24gWSguLi50KXtyZXR1cm4gdH1mdW5jdGlvbiBaKHQsbil7cmV0dXJuIG4/cyhOLFksW3ZvaWQgMCx0XSk6cyhZLHZvaWQgMCx0KX1mdW5jdGlvbiBMKHQsbixlKXtmb3IoOzspe2lmKHQ9PT1qKXJldHVybiBHKG4seShlLDApKTtpZih0PT09SyYmVihuKSlyZXR1cm4gXyhuLHkoZSwwKSk7aWYodD09PXomJlYobikpcmV0dXJuIHYobik7aWYodD09PU0pe2lmKCFBKG4pKXJldHVybiBzKHQsbixlKTtsZXQgbz1uLGk9eShlLDApO2U9WChlLDEpLHQ9byxuPWk7Y29udGludWV9aWYodD09PU4pe2lmKCFBKG4pKXJldHVybiBzKHQsbixlKTtsZXQgbz1uLGk9eShlLDApO2U9Wih5KGUsMSksITApLHQ9byxuPWk7Y29udGludWV9aWYodD09PXMpe2xldCBvPXkoZSwwKSxpPXkoZSwxKTtpZighQShvKSlyZXR1cm4gcyh0LG4sZSk7ZT1aKHkoZSwyKSwhMSksdD1vLG49aTtjb250aW51ZX1pZih0PT09RSl7bGV0IG89cyh0LG4sZSk7aWYobiE9PWomJm4hPT1LJiZuIT09eiYmbiE9PU0mJm4hPT1OJiZuIT09cyYmbiE9PUUpcmV0dXJuIG87bGV0IGk9bixmPXkoZSwwKSxiPVgoZSwxKSxwPSguLi51KT0+TChpLGYsU3QoYix1KSk7VChwLHB0LHt2YWx1ZToodSk9PnUgaW5zdGFuY2VvZiBpLGNvbmZpZ3VyYWJsZTohMH0pO2xldCByPXMoRSxwLFt2b2lkIDBdKTt1dChyLGZ0KG8pKTtsZXQgbD1hdChvKTtmb3IobGV0IHU9MDt1PGwubGVuZ3RoO3UrKylUKHIsbFt1XSxsdChvLGxbdV0pKTtyZXR1cm4gcn1yZXR1cm4gcyh0LG4sZSl9fWZ1bmN0aW9uIFJ0KHQsbil7bGV0IGU9dFtuXTtyZXR1cm4oLi4ubyk9PkwoZSx0LG8pfWZ1bmN0aW9uIEF0KHQsbiwuLi5lKXtsZXQgbz10W25dO3JldHVybiBMKG8sdCxlKX1leHBvcnR7UnQgYXMgYyxBdCBhcyBkfTs=";
|
|
41
|
+
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
42
|
+
const __eliscript_number_intrinsic = globalThis.Number;
|
|
43
|
+
const __eliscript_bigint_intrinsic = globalThis.BigInt;
|
|
44
|
+
const __eliscript_numeric_apply = globalThis.Reflect.apply;
|
|
45
|
+
const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
|
|
46
|
+
const __eliscript_numeric_error = globalThis.TypeError;
|
|
47
|
+
const __eliscript_numeric_trim = globalThis.String.prototype.trim;
|
|
48
|
+
const __eliscript_numeric_slice = globalThis.String.prototype.slice;
|
|
49
|
+
const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
|
|
50
|
+
const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
|
|
51
|
+
const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
|
|
52
|
+
const __eliscript_numeric_primitive = (value) => {
|
|
53
|
+
if (!__eliscript_numeric_object(value)) return value;
|
|
54
|
+
const exotic = value[__eliscript_numeric_symbol];
|
|
55
|
+
if (exotic !== void 0 && exotic !== null) {
|
|
56
|
+
const result = __eliscript_numeric_apply(exotic, value, ["number"]);
|
|
57
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
58
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
59
|
+
}
|
|
60
|
+
for (let index = 0; index < 2; index++) {
|
|
61
|
+
const method = value[index === 0 ? "valueOf" : "toString"];
|
|
62
|
+
if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
|
|
63
|
+
const result = __eliscript_numeric_apply(method, value, []);
|
|
64
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
68
|
+
};
|
|
69
|
+
const __eliscript_to_number = (value) => {
|
|
70
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
71
|
+
if (typeof primitive === "string") {
|
|
72
|
+
const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
|
|
73
|
+
if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
|
|
74
|
+
let first = 2;
|
|
75
|
+
while (first < text.length && text[first] === "0") first++;
|
|
76
|
+
if (first === text.length) return 0;
|
|
77
|
+
const prefix = text[1];
|
|
78
|
+
const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
|
|
79
|
+
if (text.length - first > limit) return 1 / 0;
|
|
80
|
+
const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
|
|
81
|
+
return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return __eliscript_number_intrinsic(primitive);
|
|
85
|
+
};
|
|
86
|
+
const __eliscript_numeric = (value) => {
|
|
87
|
+
if (typeof value === "number" || typeof value === "bigint") return value;
|
|
88
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
89
|
+
if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
|
|
90
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
91
|
+
};
|
|
92
|
+
const __eliscript_implicit_number = (value) => {
|
|
93
|
+
if (typeof value === "number") return value;
|
|
94
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
95
|
+
if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
|
|
96
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
97
|
+
};
|
|
98
|
+
const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
|
|
99
|
+
const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
|
|
100
|
+
const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
|
|
101
|
+
const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
|
|
102
|
+
const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
|
|
103
|
+
const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
|
|
104
|
+
const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
|
|
105
|
+
const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
|
|
106
|
+
const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
|
|
107
|
+
const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
|
|
108
|
+
const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
|
|
109
|
+
const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
|
|
110
|
+
const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
|
|
111
|
+
const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
|
|
112
|
+
const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
|
|
113
|
+
const __eliscript_numeric_relation = (operator, left, right) => {
|
|
114
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
115
|
+
if (operator === "<") return left < right;
|
|
116
|
+
if (operator === "<=") return left <= right;
|
|
117
|
+
if (operator === ">") return left > right;
|
|
118
|
+
return left >= right;
|
|
119
|
+
}
|
|
120
|
+
let a = __eliscript_numeric_primitive(left);
|
|
121
|
+
let b = __eliscript_numeric_primitive(right);
|
|
122
|
+
const x = typeof a, y = typeof b;
|
|
123
|
+
if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
|
|
124
|
+
a = __eliscript_numeric(a);
|
|
125
|
+
b = __eliscript_numeric(b);
|
|
126
|
+
}
|
|
127
|
+
if (operator === "<") return a < b;
|
|
128
|
+
if (operator === "<=") return a <= b;
|
|
129
|
+
if (operator === ">") return a > b;
|
|
130
|
+
return a >= b;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
import {createHash} from "node:crypto";
|
|
134
|
+
import {Buffer} from "node:buffer";
|
|
135
|
+
import {posix, resolve} from "node:path";
|
|
136
|
+
import {pathToFileURL} from "node:url";
|
|
137
|
+
import {read_string} from "../../dist/bootstrap/reader.mjs";
|
|
138
|
+
import {compile_string} from "../../dist/bootstrap/compiler.mjs";
|
|
139
|
+
import * as legacy from "./compiler-corpus-managed-fixtures-legacy.mjs";
|
|
140
|
+
import {originalSourceCaseLocators} from "./compiler-corpus-managed-cases.mjs";
|
|
141
|
+
import {originalManagedProgramCompletionSource} from "./compiler-corpus-managed-adapters.mjs";
|
|
142
|
+
import {readOriginalProcessHostDependency, bindOriginalProcessHostDependency} from "./compiler-corpus-process.mjs";
|
|
143
|
+
const readOriginalManagedStaticTemplate = (legacy)["readOriginalManagedStaticTemplate"];
|
|
144
|
+
__eliscript_tdz_ready_0 = true;
|
|
145
|
+
const buildBackends = (legacy)["buildBackends"];
|
|
146
|
+
__eliscript_tdz_ready_1 = true;
|
|
147
|
+
const bindOriginalManagedSourceEvidence = (legacy)["bindOriginalManagedSourceEvidence"];
|
|
148
|
+
__eliscript_tdz_ready_2 = true;
|
|
149
|
+
const entry_fixture = "tests/fixtures/wasm-managed-project-entry.eli";
|
|
150
|
+
__eliscript_tdz_ready_3 = true;
|
|
151
|
+
const state_fixture = "tests/fixtures/wasm-managed-project-state.eli";
|
|
152
|
+
__eliscript_tdz_ready_4 = true;
|
|
153
|
+
const host_source_file = "tools/backends/eliscript/compiler-corpus-project-entry-host.eli";
|
|
154
|
+
__eliscript_tdz_ready_5 = true;
|
|
155
|
+
const host_bridge_files = ["tools/backends/eliscript/managed-host.eli", "tools/backends/managed-host.mjs", "tools/backends/managed-host-legacy.mjs", "tools/backends/eliscript/managed-host-runtime.eli", "tools/backends/managed-host-runtime.mjs", "tools/backends/managed-host-runtime.mjs.map", "tools/backends/eliscript/managed-host-lifecycle.eli", "tools/backends/managed-host-lifecycle.mjs", "tools/backends/eliscript/managed-foreign-binding.eli", "tools/backends/managed-foreign-binding.mjs", "tools/backends/eliscript/compiler-corpus-host-context.eli", "tools/backends/compiler-corpus-host-context.mjs", "tools/backends/eliscript/managed-host-object-provider.eli", "tools/backends/managed-host-object-provider.mjs", "tools/backends/eliscript/managed-host-object-realm.eli", "tools/backends/managed-host-object-realm.mjs"];
|
|
156
|
+
__eliscript_tdz_ready_6 = true;
|
|
157
|
+
function hash(source) {
|
|
158
|
+
return ((createHash("sha256"))["update"](source))["digest"]("hex");
|
|
159
|
+
}
|
|
160
|
+
const browser_suite_plans = [({"suite": "tests/wasm-managed-array-search.test.mjs", "archive": "tests/wasm-managed-array-search-test-legacy.mjs", "sha256": "77b0266420b697cc216cf13fc6d8d1d189318dca8fc48f0d9fd478e321c9ecc2", "count": 11, "pairs": [["tests/eliscript/managed-array-search.eli", "tests/wasm-managed-array-search.test.mjs"], ["tests/eliscript/managed-array-search-node.eli", "tests/helpers/managed-array-search-node.mjs"], ["tests/eliscript/managed-array-search-page.eli", "tests/helpers/managed-array-search-page.mjs"], ["tests/eliscript/managed-array-search-abi.eli", "tests/helpers/managed-array-search-abi.mjs"], ["tests/eliscript/managed-browser-transport.eli", "tests/helpers/managed-browser-transport.mjs"]], "caseModules": ["tests/wasm-managed-array-search.test.mjs", "tests/helpers/managed-array-search-abi.mjs"], "fixtures": ["tests/fixtures/wasm-managed-array-search.eli", "tests/fixtures/managed-array-search-mutations.eli", "tests/fixtures/managed-array-search-empty.eli", "tests/fixtures/managed-array-search-identity.eli", "tests/fixtures/managed-array-search-invalid.eli", "tests/fixtures/managed-array-search-conversion.eli"]}), ({"suite": "tests/wasm-managed-symbols.test.mjs", "archive": "tests/wasm-managed-symbols-test-legacy.mjs", "sha256": "fe0fd09cd43e80b01617570dc7913d3a0bd006f8c0a7f0a945de3072a3efdbc6", "count": 35, "pairs": [["tests/eliscript/managed-symbols.eli", "tests/wasm-managed-symbols.test.mjs"], ["tests/eliscript/managed-symbols-node.eli", "tests/helpers/managed-symbols-node.mjs"], ["tests/eliscript/managed-symbols-page.eli", "tests/helpers/managed-symbols-page.mjs"], ["tests/eliscript/managed-browser-transport.eli", "tests/helpers/managed-browser-transport.mjs"]], "caseModules": ["tests/wasm-managed-symbols.test.mjs"], "fixtures": ["tests/fixtures/wasm-managed-symbols.eli"]}), ({"suite": "tests/wasm-managed-object-properties.test.mjs", "archive": "tests/wasm-managed-object-properties-test-legacy.mjs", "sha256": "56ed33c421d2aa7912c94fa50d807f1a40b4798418d0154779bd991bee057653", "count": 20, "pairs": [["tests/eliscript/managed-object-properties.eli", "tests/wasm-managed-object-properties.test.mjs"], ["tests/eliscript/managed-object-properties-node.eli", "tests/helpers/managed-object-properties-node.mjs"], ["tests/eliscript/managed-object-properties-page.eli", "tests/helpers/managed-object-properties-page.mjs"], ["tests/eliscript/managed-browser-transport.eli", "tests/helpers/managed-browser-transport.mjs"]], "caseModules": ["tests/wasm-managed-object-properties.test.mjs"], "fixtures": ["tests/fixtures/wasm-managed-object-properties.eli", "tests/fixtures/managed-object-properties-case-2-0.eli", "tests/fixtures/managed-object-properties-case-4-0.eli", "tests/fixtures/managed-object-properties-case-5-0.eli", "tests/fixtures/managed-object-properties-case-6-0.eli", "tests/fixtures/managed-object-properties-case-7-0.eli", "tests/fixtures/managed-object-properties-case-8-0.eli", "tests/fixtures/managed-object-properties-case-13-0.eli", "tests/fixtures/managed-object-properties-case-16-0.eli", "tests/fixtures/managed-object-properties-case-16-1.eli", "tests/fixtures/managed-object-properties-case-19-0.eli", "tests/fixtures/managed-object-properties-descriptor-probes.eli"]}), ({"suite": "tests/wasm-managed-array-construction.test.mjs", "archive": "tests/wasm-managed-array-construction-test-legacy.mjs", "sha256": "456846a3f8356e9fa7cedd60561e2080e07895127b30c39d6266cef1e361b646", "count": 20, "pairs": [["tests/eliscript/managed-array-construction.eli", "tests/wasm-managed-array-construction.test.mjs"], ["tests/eliscript/managed-array-construction-node.eli", "tests/helpers/managed-array-construction-node.mjs"], ["tests/eliscript/managed-array-construction-page.eli", "tests/helpers/managed-array-construction-page.mjs"], ["tests/eliscript/managed-browser-transport.eli", "tests/helpers/managed-browser-transport.mjs"]], "caseModules": ["tests/wasm-managed-array-construction.test.mjs"], "fixtures": ["tests/fixtures/wasm-managed-array-construction.eli"]})];
|
|
161
|
+
__eliscript_tdz_ready_7 = true;
|
|
162
|
+
async function browser_source_asset(options, filename) {
|
|
163
|
+
return (await (async (source) => {
|
|
164
|
+
return ((identity) => {
|
|
165
|
+
return (() => {
|
|
166
|
+
if ((!__eliscript_truthy(((__eliscript_value_1) => (__eliscript_truthy(__eliscript_value_1) ? ((__eliscript_value_2) => (__eliscript_truthy(__eliscript_value_2) ? ((__eliscript_value_3) => (__eliscript_truthy(__eliscript_value_3) ? ((__eliscript_value_4) => (__eliscript_truthy(__eliscript_value_4) ? ((__eliscript_value_5) => (__eliscript_truthy(__eliscript_value_5) ? ((Buffer)["from"](source))["equals"]((Buffer)["from"]((identity)["content"], "base64")) : __eliscript_value_5))(((identity)["encoding"] === "base64")) : __eliscript_value_4))(((Buffer)["byteLength"](source) === (identity)["bytes"])) : __eliscript_value_3))((hash(source) === (identity)["sha256"])) : __eliscript_value_2))(((identity)["file"] === filename)) : __eliscript_value_1))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(source) === "string"))))) {
|
|
167
|
+
((__eliscript_value_6) => { throw __eliscript_value_6; })(new (globalThis.TypeError)((String("managed browser source differs from its actual asset: ") + String(filename))));
|
|
168
|
+
}
|
|
169
|
+
return ({"source": source, "proof": ({"file": filename, "sourceSha256": (identity)["sha256"], "bytes": (identity)["bytes"]})});
|
|
170
|
+
})();
|
|
171
|
+
})(await ((options)["file"](filename)));
|
|
172
|
+
})(await ((options)["text"](filename))));
|
|
173
|
+
}
|
|
174
|
+
function readOriginalManagedBrowserCases(source, filename) {
|
|
175
|
+
{
|
|
176
|
+
const __eliscript_value_7 = read_string(source, filename);
|
|
177
|
+
const __eliscript_value_8 = [];
|
|
178
|
+
{
|
|
179
|
+
let pending = __eliscript_value_7;
|
|
180
|
+
let cases = __eliscript_value_8;
|
|
181
|
+
while (__eliscript_numeric_relation(">", ((pending) ?? []).length, 0)) {
|
|
182
|
+
{
|
|
183
|
+
let node = (pending)["shift"]();
|
|
184
|
+
let items = (node)["items"];
|
|
185
|
+
let head = ((__eliscript_value_9) => (__eliscript_truthy(__eliscript_value_9) ? ((__eliscript_value_10) => (__eliscript_truthy(__eliscript_value_10) ? ((items)[0])["name"] : __eliscript_value_10))(__eliscript_numeric_relation(">", ((items) ?? []).length, 0)) : __eliscript_value_9))(Array.isArray(items));
|
|
186
|
+
if (__eliscript_truthy(Array.isArray(items))) {
|
|
187
|
+
if ((head === "quote")) {
|
|
188
|
+
null;
|
|
189
|
+
} else {
|
|
190
|
+
if ((head === "test")) {
|
|
191
|
+
{
|
|
192
|
+
let title_node = (items)[1];
|
|
193
|
+
let title = (title_node)["value"];
|
|
194
|
+
let timeout_node = (items)[3];
|
|
195
|
+
let timeout = ((((items) ?? []).length === 3) ? 5000 : (timeout_node)["value"]);
|
|
196
|
+
if ((!__eliscript_truthy(((__eliscript_value_11) => (__eliscript_truthy(__eliscript_value_11) ? ((__eliscript_value_12) => (__eliscript_truthy(__eliscript_value_12) ? ((__eliscript_value_13) => (__eliscript_truthy(__eliscript_value_13) ? ((__eliscript_value_14) => (__eliscript_truthy(__eliscript_value_14) ? __eliscript_numeric_relation(">", timeout, 0) : __eliscript_value_14))(Number.isSafeInteger(timeout)) : __eliscript_value_13))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(title) === "string")) : __eliscript_value_12))(((title_node)["kind"] === "literal")) : __eliscript_value_11))(([3, 4])["includes"](((items) ?? []).length))))) {
|
|
197
|
+
((__eliscript_value_15) => { throw __eliscript_value_15; })(new (globalThis.TypeError)((String("maintained managed browser case requires its literal title and deadline: ") + String(filename))));
|
|
198
|
+
}
|
|
199
|
+
(cases)["push"](({"originalCase": ({"title": title, "timeoutMs": timeout, "sourceFile": filename})}));
|
|
200
|
+
}
|
|
201
|
+
} else {
|
|
202
|
+
__eliscript_at(Reflect, "apply")((pending)["push"], pending, items);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return cases;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
async function readOriginalManagedSuiteMigrations(options) {
|
|
213
|
+
return (await (async (result, index) => {
|
|
214
|
+
(await (async () => {
|
|
215
|
+
while (__eliscript_numeric_relation("<", index, (((__eliscript_tdz_read_7())) ?? []).length)) {
|
|
216
|
+
(await (async (plan) => {
|
|
217
|
+
return (await (async (suite) => {
|
|
218
|
+
return (await (async (archive) => {
|
|
219
|
+
return (await (async (original) => {
|
|
220
|
+
return (await (async (proof) => {
|
|
221
|
+
return (await (async (cases) => {
|
|
222
|
+
return (await (async (assets) => {
|
|
223
|
+
return (await (async (actual_cases) => {
|
|
224
|
+
return (await (async (position) => {
|
|
225
|
+
return (await (async () => {
|
|
226
|
+
if ((!(((proof)["sourceSha256"] === (plan)["sha256"]) && (((cases) ?? []).length === (plan)["count"])))) {
|
|
227
|
+
((__eliscript_value_16) => { throw __eliscript_value_16; })(new (globalThis.TypeError)((String("original managed browser suite identity changed: ") + String(archive))));
|
|
228
|
+
}
|
|
229
|
+
(await (async () => {
|
|
230
|
+
while (__eliscript_numeric_relation("<", position, (((plan)["pairs"]) ?? []).length)) {
|
|
231
|
+
(await (async (pair) => {
|
|
232
|
+
return (await (async (source_file) => {
|
|
233
|
+
return (await (async (module_file) => {
|
|
234
|
+
return (await (async (source) => {
|
|
235
|
+
return (await (async (generated) => {
|
|
236
|
+
return ((map_asset) => {
|
|
237
|
+
return ((map) => {
|
|
238
|
+
return (() => {
|
|
239
|
+
if ((!__eliscript_truthy(((__eliscript_value_17) => (__eliscript_truthy(__eliscript_value_17) ? ((__eliscript_value_18) => (__eliscript_truthy(__eliscript_value_18) ? ((__eliscript_value_19) => (__eliscript_truthy(__eliscript_value_19) ? ((__eliscript_value_20) => (__eliscript_truthy(__eliscript_value_20) ? ((__eliscript_value_21) => (__eliscript_truthy(__eliscript_value_21) ? ((__eliscript_value_22) => (__eliscript_truthy(__eliscript_value_22) ? (((((map)["sourcesContent"]) ?? []).length === 1) && (((map)["sourcesContent"])[0] === (source)["source"])) : __eliscript_value_22))(Array.isArray((map)["sourcesContent"])) : __eliscript_value_21))(((posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"](module_file), ((map)["sources"])[0])) === source_file)) : __eliscript_value_20))(((((map)["sources"]) ?? []).length === 1)) : __eliscript_value_19))(Array.isArray((map)["sources"])) : __eliscript_value_18))(((map)["file"] === (posix)["basename"](module_file))) : __eliscript_value_17))(((map)["version"] === 3))))) {
|
|
240
|
+
((__eliscript_value_23) => { throw __eliscript_value_23; })(new (globalThis.TypeError)((String("managed browser map does not bind its maintained source: ") + String(module_file))));
|
|
241
|
+
}
|
|
242
|
+
(assets)["push"]((source)["proof"], (generated)["proof"], (map_asset)["proof"]);
|
|
243
|
+
if (__eliscript_truthy(((plan)["caseModules"])["includes"](module_file))) {
|
|
244
|
+
return __eliscript_at(Reflect, "apply")((actual_cases)["push"], actual_cases, readOriginalManagedBrowserCases((source)["source"], source_file));
|
|
245
|
+
} else {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
})();
|
|
249
|
+
})(JSON.parse((map_asset)["source"]));
|
|
250
|
+
})(await (browser_source_asset(options, (String(module_file) + String(".map")))));
|
|
251
|
+
})(await (browser_source_asset(options, module_file))));
|
|
252
|
+
})(await (browser_source_asset(options, source_file))));
|
|
253
|
+
})((pair)[1]));
|
|
254
|
+
})((pair)[0]));
|
|
255
|
+
})(((plan)["pairs"])[position]));
|
|
256
|
+
((position = (position + 1)));
|
|
257
|
+
}
|
|
258
|
+
return null;
|
|
259
|
+
})());
|
|
260
|
+
if ((!__eliscript_truthy(((__eliscript_value_24) => (__eliscript_truthy(__eliscript_value_24) ? (cases)["every"](((item) => {
|
|
261
|
+
return ((((actual_cases)["filter"](((actual) => {
|
|
262
|
+
return ((((actual)["originalCase"])["title"] === ((item)["originalCase"])["title"]) && (((actual)["originalCase"])["timeoutMs"] === ((item)["originalCase"])["timeoutMs"]));
|
|
263
|
+
}))) ?? []).length === 1);
|
|
264
|
+
})) : __eliscript_value_24))((((actual_cases) ?? []).length === ((cases) ?? []).length))))) {
|
|
265
|
+
((__eliscript_value_25) => { throw __eliscript_value_25; })(new (globalThis.TypeError)((String("maintained managed browser suite lost an original case or deadline: ") + String(suite))));
|
|
266
|
+
}
|
|
267
|
+
((position = 0));
|
|
268
|
+
(await (async () => {
|
|
269
|
+
while (__eliscript_numeric_relation("<", position, (((plan)["fixtures"]) ?? []).length)) {
|
|
270
|
+
(assets)["push"]((await (browser_source_asset(options, ((plan)["fixtures"])[position])))["proof"]);
|
|
271
|
+
((position = (position + 1)));
|
|
272
|
+
}
|
|
273
|
+
return null;
|
|
274
|
+
})());
|
|
275
|
+
return (result)["push"](({"suite": suite, "sourceAssets": assets, "assertionSource": Object.assign(({}), proof, ({"cases": (cases)["map"](((item) => {
|
|
276
|
+
return Object.assign(({}), item, ({"file": archive, "sourceFile": archive, "originalSuite": suite, "originalCase": Object.assign(({}), (item)["originalCase"], ({"sourceFile": archive}))}));
|
|
277
|
+
}))}))}));
|
|
278
|
+
})());
|
|
279
|
+
})(0));
|
|
280
|
+
})([]));
|
|
281
|
+
})([proof]));
|
|
282
|
+
})(originalSourceCaseLocators(suite, (original)["source"])));
|
|
283
|
+
})((original)["proof"]));
|
|
284
|
+
})(await (browser_source_asset(options, archive))));
|
|
285
|
+
})((plan)["archive"]));
|
|
286
|
+
})((plan)["suite"]));
|
|
287
|
+
})(((__eliscript_tdz_read_7()))[index]));
|
|
288
|
+
((index = (index + 1)));
|
|
289
|
+
}
|
|
290
|
+
return null;
|
|
291
|
+
})());
|
|
292
|
+
return result;
|
|
293
|
+
})([], 0));
|
|
294
|
+
}
|
|
295
|
+
function browser_suite_record(record, migrations, options) {
|
|
296
|
+
if (((__eliscript_value_26, __eliscript_value_27) => (__eliscript_value_26 !== __eliscript_value_27))((record)["id"], "original-managed-suite:complete-fixture-suites")) {
|
|
297
|
+
return record;
|
|
298
|
+
} else {
|
|
299
|
+
{
|
|
300
|
+
let original = (record)["original"];
|
|
301
|
+
let assets = (((original)["sourceAssets"] ?? []))["slice"]();
|
|
302
|
+
let coverage = ((record)["coverage"])["slice"]();
|
|
303
|
+
let fixture_inputs = [];
|
|
304
|
+
(migrations)["forEach"](((migration) => {
|
|
305
|
+
if ((!__eliscript_truthy(((original)["suites"])["some"](((suite) => {
|
|
306
|
+
return ((suite)["file"] === (migration)["suite"]);
|
|
307
|
+
}))))) {
|
|
308
|
+
((__eliscript_value_28) => { throw __eliscript_value_28; })(new (globalThis.TypeError)("migrated managed browser suite is absent from its complete original replay"));
|
|
309
|
+
}
|
|
310
|
+
((migration)["sourceAssets"])["forEach"](((asset) => {
|
|
311
|
+
{
|
|
312
|
+
const __eliscript_value_29 = (assets)["find"](((item) => {
|
|
313
|
+
return ((item)["file"] === (asset)["file"]);
|
|
314
|
+
}));
|
|
315
|
+
{
|
|
316
|
+
let previous = __eliscript_value_29;
|
|
317
|
+
if (__eliscript_truthy(previous)) {
|
|
318
|
+
if ((!((previous)["sourceSha256"] === (asset)["sourceSha256"]))) {
|
|
319
|
+
return ((__eliscript_value_30) => { throw __eliscript_value_30; })(new (globalThis.TypeError)("managed browser replay source asset identity conflicts"));
|
|
320
|
+
} else {
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
323
|
+
} else {
|
|
324
|
+
return (assets)["push"](asset);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}));
|
|
329
|
+
{
|
|
330
|
+
const __eliscript_value_31 = ((__eliscript_tdz_read_7()))["find"](((item) => {
|
|
331
|
+
return ((item)["suite"] === (migration)["suite"]);
|
|
332
|
+
}));
|
|
333
|
+
{
|
|
334
|
+
let plan = __eliscript_value_31;
|
|
335
|
+
return ((plan)["fixtures"])["forEach"](((filename) => {
|
|
336
|
+
if (__eliscript_truthy(((options)["stableFiles"])["has"](filename))) {
|
|
337
|
+
{
|
|
338
|
+
const __eliscript_value_32 = ((migration)["sourceAssets"])["find"](((item) => {
|
|
339
|
+
return ((item)["file"] === filename);
|
|
340
|
+
}));
|
|
341
|
+
const __eliscript_value_33 = (String("stable-compatibility:") + String(filename));
|
|
342
|
+
{
|
|
343
|
+
let asset = __eliscript_value_32;
|
|
344
|
+
let id = __eliscript_value_33;
|
|
345
|
+
if ((!__eliscript_truthy(asset))) {
|
|
346
|
+
((__eliscript_value_34) => { throw __eliscript_value_34; })(new (globalThis.TypeError)("complete managed replay lost its declared fixture input"));
|
|
347
|
+
}
|
|
348
|
+
if ((!__eliscript_truthy((coverage)["includes"](id)))) {
|
|
349
|
+
(coverage)["push"](id);
|
|
350
|
+
}
|
|
351
|
+
return (fixture_inputs)["push"](({"file": filename, "sourceSha256": (asset)["sourceSha256"], "suite": (migration)["suite"], "coverageId": id, "execution": "complete-maintained-original-suite-input"}));
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
} else {
|
|
355
|
+
return null;
|
|
356
|
+
}
|
|
357
|
+
}));
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}));
|
|
361
|
+
return Object.assign(({}), record, ({"coverage": coverage, "original": Object.assign(({}), original, ({"sourceAssets": assets, "maintainedSuiteSources": migrations, "maintainedFixtureInputs": fixture_inputs}))}));
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
async function readOriginalStaticDataFixtureMigration(options) {
|
|
366
|
+
return (await (async (suite) => {
|
|
367
|
+
return (await (async (archive) => {
|
|
368
|
+
return (await (async (original) => {
|
|
369
|
+
return (await (async (proof) => {
|
|
370
|
+
return (await (async (assets) => {
|
|
371
|
+
return (await (async (cases) => {
|
|
372
|
+
return (await (async (pairs) => {
|
|
373
|
+
return (await (async (index) => {
|
|
374
|
+
return (await (async () => {
|
|
375
|
+
if ((!(((proof)["sourceSha256"] === "8265218c316f48bd22ef4eefaff5303ec5fa1208387ca9fb22afadcd85c2ef5a") && (((cases) ?? []).length === 19)))) {
|
|
376
|
+
((__eliscript_value_35) => { throw __eliscript_value_35; })(new (globalThis.TypeError)("original static-data fixture suite identity or case inventory changed"));
|
|
377
|
+
}
|
|
378
|
+
(await (async () => {
|
|
379
|
+
while (__eliscript_numeric_relation("<", index, ((pairs) ?? []).length)) {
|
|
380
|
+
(await (async (pair) => {
|
|
381
|
+
return (await (async (source) => {
|
|
382
|
+
return (await (async (generated) => {
|
|
383
|
+
return ((mapping) => {
|
|
384
|
+
return ((map) => {
|
|
385
|
+
return (() => {
|
|
386
|
+
if ((!(((map)["version"] === 3) && ((map)["file"] === (posix)["basename"]((pair)[1])) && ((((map)["sources"]) ?? []).length === 1) && ((((map)["sourcesContent"]) ?? []).length === 1) && (((map)["sourcesContent"])[0] === (source)["source"]) && ((posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"]((pair)[1]), ((map)["sources"])[0])) === (pair)[0])))) {
|
|
387
|
+
((__eliscript_value_36) => { throw __eliscript_value_36; })(new (globalThis.TypeError)("static-data fixture map does not bind its maintained source"));
|
|
388
|
+
}
|
|
389
|
+
return (assets)["push"]((source)["proof"], (generated)["proof"], (mapping)["proof"]);
|
|
390
|
+
})();
|
|
391
|
+
})(JSON.parse((mapping)["source"]));
|
|
392
|
+
})(await (browser_source_asset(options, (String((pair)[1]) + String(".map")))));
|
|
393
|
+
})(await (browser_source_asset(options, (pair)[1]))));
|
|
394
|
+
})(await (browser_source_asset(options, (pair)[0]))));
|
|
395
|
+
})((pairs)[index]));
|
|
396
|
+
((index = (index + 1)));
|
|
397
|
+
}
|
|
398
|
+
return null;
|
|
399
|
+
})());
|
|
400
|
+
return ({"executedSuite": suite, "sourceAssets": assets, "assertionSource": Object.assign(({}), proof, ({"cases": (cases)["map"](((item) => {
|
|
401
|
+
return Object.assign(({}), item, ({"file": archive, "sourceFile": archive, "originalSuite": suite, "originalCase": Object.assign(({}), (item)["originalCase"], ({"sourceFile": archive}))}));
|
|
402
|
+
}))}))});
|
|
403
|
+
})());
|
|
404
|
+
})(0));
|
|
405
|
+
})([["tools/testing/wasm-static-snapshot.eli", "tools/testing/wasm-static-snapshot.mjs"], ["tools/testing/wasm-static-repairs.eli", "tools/testing/wasm-static-repairs.mjs"], ["tools/testing/generated-fixture-module.eli", "tools/testing/generated-fixture-module.mjs"], ["tools/testing/portable-node-fixtures.eli", "tools/testing/portable-node-fixtures.mjs"], ["tests/eliscript/portable-node-build.eli", "tests/helpers/portable-node-build.mjs"], ["tests/eliscript/portable-node-test.eli", "tests/helpers/portable-node-test.mjs"], ["tests/eliscript/portable-node-install.eli", "tests/helpers/portable-node-install.mjs"], ["tools/testing/number-text-node.eli", "tools/testing/number-text-node.mjs"], ["tests/eliscript/wasm-memory-static-data.eli", suite], ["tests/eliscript/wasm-static-snapshot-install.eli", "tests/helpers/wasm-static-snapshot-install.mjs"], ["tests/eliscript/wasm-static-snapshot-fixture.eli", "tests/wasm-static-snapshot-fixture-selfhosted.test.mjs"]]));
|
|
406
|
+
})(originalSourceCaseLocators(suite, (original)["source"])));
|
|
407
|
+
})([proof]));
|
|
408
|
+
})((original)["proof"]));
|
|
409
|
+
})(await (browser_source_asset(options, archive))));
|
|
410
|
+
})("tests/wasm-memory-static-data-test-legacy.mjs"));
|
|
411
|
+
})("tests/wasm-memory-static-data.test.mjs"));
|
|
412
|
+
}
|
|
413
|
+
async function static_data_fixture_record(record, options) {
|
|
414
|
+
if ((!__eliscript_truthy(((__eliscript_value_37) => (__eliscript_truthy(__eliscript_value_37) ? ((__eliscript_value_38) => (__eliscript_truthy(__eliscript_value_38) ? ((__eliscript_value_39) => (__eliscript_truthy(__eliscript_value_39) ? (((record)["original"])["suites"])["some"](((suite) => {
|
|
415
|
+
return ((suite)["file"] === "tests/wasm-memory-static-data.test.mjs");
|
|
416
|
+
})) : __eliscript_value_39))((((record)["original"])["semanticCoverage"] === "complete-original-suite-with-selected-compiler-namespaces")) : __eliscript_value_38))((((record)["original"])["testRunner"] === "bun test")) : __eliscript_value_37))(((record)["id"] === "original-managed-suite:complete-fixture-suites"))))) {
|
|
417
|
+
((__eliscript_value_40) => { throw __eliscript_value_40; })(new (globalThis.TypeError)("static-data fixture evidence requires its complete real original replay"));
|
|
418
|
+
}
|
|
419
|
+
return ((migration) => {
|
|
420
|
+
return ((original) => {
|
|
421
|
+
return ((assets) => {
|
|
422
|
+
return (() => {
|
|
423
|
+
((migration)["sourceAssets"])["forEach"](((asset) => {
|
|
424
|
+
{
|
|
425
|
+
const __eliscript_value_41 = (assets)["find"](((item) => {
|
|
426
|
+
return ((item)["file"] === (asset)["file"]);
|
|
427
|
+
}));
|
|
428
|
+
{
|
|
429
|
+
let previous = __eliscript_value_41;
|
|
430
|
+
if (__eliscript_truthy(((__eliscript_value_42) => (__eliscript_truthy(__eliscript_value_42) ? ((__eliscript_value_43, __eliscript_value_44) => (__eliscript_value_43 !== __eliscript_value_44))((previous)["sourceSha256"], (asset)["sourceSha256"]) : __eliscript_value_42))(previous))) {
|
|
431
|
+
((__eliscript_value_45) => { throw __eliscript_value_45; })(new (globalThis.TypeError)("static-data fixture source identity conflicts with original replay"));
|
|
432
|
+
}
|
|
433
|
+
if ((!__eliscript_truthy(previous))) {
|
|
434
|
+
return (assets)["push"](asset);
|
|
435
|
+
} else {
|
|
436
|
+
return null;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}));
|
|
441
|
+
return Object.assign(({}), record, ({"original": Object.assign(({}), original, ({"sourceAssets": assets, "staticDataFixtureMigration": migration}))}));
|
|
442
|
+
})();
|
|
443
|
+
})((((original)["sourceAssets"] ?? []))["slice"]());
|
|
444
|
+
})((record)["original"]);
|
|
445
|
+
})(await (readOriginalStaticDataFixtureMigration(options)));
|
|
446
|
+
}
|
|
447
|
+
const final_fixture_plans = [({"suite": "tests/wasm-managed-runtime.test.mjs", "archive": "tests/wasm-managed-runtime-test-legacy.mjs", "sha256": "0b240d3dff9164f23edf534b5a79598948b80f001e9316fa0f37e55a40f0fed2", "count": 64, "replay": true, "pairs": [["tests/eliscript/wasm-managed-runtime.eli", "tests/wasm-managed-runtime.test.mjs"], ["tests/eliscript/managed-runtime-cases.eli", "tests/helpers/managed-runtime-cases.mjs"], ["tests/eliscript/managed-runtime-install.eli", "tests/helpers/managed-runtime-install.mjs"]]}), ({"suite": "tests/wasm-managed-wire.test.mjs", "executedSuite": "tests/wasm-managed-wire-selfhosted.test.mjs", "archive": "tests/wasm-managed-wire-test-legacy.mjs", "sha256": "05835e2d5f6fd6e973a052df3389cafb3e131fbcfce305272070b13d20453df0", "count": 5, "replay": true, "inputs": ["stdlib/managed-wire-http-rpc.eli", "stdlib/managed-wire-schema.eli", "stdlib/managed-wire-markdown.eli"], "pairs": [["tools/testing/wire-project-fixture.eli", "tools/testing/wire-project-fixture.mjs"], ["tests/eliscript/wasm-managed-wire.eli", "tests/wasm-managed-wire-selfhosted.test.mjs"], ["tests/eliscript/wire-project-fixture-install.eli", "tests/helpers/wire-project-fixture-install.mjs"], ["tests/eliscript/standard-library-fixture.eli", "tests/helpers/standard-library-fixture.mjs"], ["tests/eliscript/wire-default-node.eli", "tests/helpers/wire-default-node.mjs"], ["tests/eliscript/wire-project-fixture.eli", "tests/wire-project-fixture-selfhosted.test.mjs"]]}), ({"suite": "tests/wasm-managed-source-collections.test.mjs", "archive": "tests/wasm-managed-source-collections-test-legacy.mjs", "sha256": "544c284cd764eaa7dfa82cb5834fd7463a9eebf11f15b8e43a133e8634193215", "count": 17, "replay": true, "pairs": [["tests/eliscript/managed-source-collections-test.eli", "tests/wasm-managed-source-collections.test.mjs"], ["tests/eliscript/managed-collection-affected.eli", "tests/helpers/managed-collection-affected.mjs"], ["tests/eliscript/managed-collection-install.eli", "tests/helpers/managed-collection-install.mjs"]]}), ({"suite": "tests/wasm-managed-collection-for-each.test.mjs", "archive": "tests/wasm-managed-collection-for-each-test-legacy.mjs", "sha256": "793522a737ca6493ec25fa763a8b1251c17460ff98d9c5ac04eba2e4ebab3cfd", "count": 11, "replay": false, "pairs": [["tests/eliscript/managed-collection-for-each-test.eli", "tests/wasm-managed-collection-for-each.test.mjs"], ["tests/eliscript/managed-collection-affected.eli", "tests/helpers/managed-collection-affected.mjs"], ["tests/eliscript/managed-collection-install.eli", "tests/helpers/managed-collection-install.mjs"]]}), ({"suite": "tests/compiler-response-events.test.mjs", "archive": "tests/compiler-response-events-test-legacy.mjs", "sha256": "dbf2cc1022dd98c05266c32c2e43b596865382713a50f2e4444a7106052154ab", "count": 25, "replay": false, "inputs": ["bootstrap/host/compiler-session.eli", "bootstrap/host/compiler-tools.eli"], "pairs": [["tests/eliscript/compiler-response-events.eli", "tests/compiler-response-events.test.mjs"], ["tests/eliscript/response-identities-install.eli", "tests/helpers/response-identities-install.mjs"], ["tests/eliscript/response-identities.eli", "tests/helpers/response-identities.mjs"]]}), ({"suite": "tests/wasm-managed-transient-state.test.mjs", "archive": "tests/wasm-managed-transient-state.test.mjs", "sha256": "cef9524c8f9e95420ba13b0ce4189ac7e171ea662a92275b89c01c828f4f1f19", "count": 4, "replay": true, "pairs": [["tests/eliscript/standard-library-fixture.eli", "tests/helpers/standard-library-fixture.mjs"], ["tests/eliscript/standard-library-fixture-install.eli", "tests/helpers/standard-library-fixture-install.mjs"], ["tests/eliscript/standard-library-fixture-tests.eli", "tests/standard-library-fixture-selfhosted.test.mjs"]]}), ({"suite": "tests/wasm-managed-core-modules.test.mjs", "archive": "tests/wasm-managed-core-modules.test.mjs", "sha256": "0925889b35d1a8c2f2d0142a0bfe9ff9f2e249d87221ca09afd50f4730673140", "count": 4, "replay": true, "pairs": [["tests/eliscript/standard-library-fixture.eli", "tests/helpers/standard-library-fixture.mjs"], ["tests/eliscript/standard-library-fixture-install.eli", "tests/helpers/standard-library-fixture-install.mjs"], ["tests/eliscript/standard-library-fixture-tests.eli", "tests/standard-library-fixture-selfhosted.test.mjs"]]}), ({"suite": "tests/wasm-managed-sorted-core.test.mjs", "archive": "tests/wasm-managed-sorted-core.test.mjs", "sha256": "84fd970f85e0df39b2efad23a8aa445106954fd9fa8df41d7c5978a70f70f303", "count": 5, "replay": true, "pairs": [["tests/eliscript/standard-library-fixture.eli", "tests/helpers/standard-library-fixture.mjs"], ["tests/eliscript/standard-library-fixture-install.eli", "tests/helpers/standard-library-fixture-install.mjs"], ["tests/eliscript/standard-library-fixture-tests.eli", "tests/standard-library-fixture-selfhosted.test.mjs"]]}), ({"suite": "tests/wasm-managed-primitive-properties.test.mjs", "archive": "tests/wasm-managed-primitive-properties-test-legacy.mjs", "sha256": "4bc4538a02623f53c7ef8e54ad62fa047afddb9c6a1e78923a0e4bcea8a60a98", "count": 11, "replay": false, "pairs": [["tests/eliscript/wasm-managed-primitive-properties.eli", "tests/wasm-managed-primitive-properties.test.mjs"], ["tests/eliscript/managed-primitive-properties-install.eli", "tests/helpers/managed-primitive-properties-install.mjs"], ["tests/eliscript/managed-primitive-properties-cases.eli", "tests/helpers/managed-primitive-properties-cases.mjs"]]}), ({"suite": "tests/wasm-managed-objects.test.mjs", "archive": "tests/wasm-managed-objects-test-legacy.mjs", "sha256": "d7901f1e2223b8b094df57f7dcdd56ad9c1938da84c89d57f5ab7752fc64241f", "count": 23, "replay": false, "pairs": [["tests/eliscript/wasm-managed-objects.eli", "tests/wasm-managed-objects.test.mjs"], ["tests/eliscript/managed-container-cases.eli", "tests/helpers/managed-container-cases.mjs"], ["tests/eliscript/managed-container-install.eli", "tests/helpers/managed-container-install.mjs"]]}), ({"suite": "tests/wasm-managed-arrays.test.mjs", "archive": "tests/wasm-managed-arrays-test-legacy.mjs", "sha256": "d7748ae39c13fe9b5e7ba31e866ef2868c279e161673406ab2fe244b192d89d4", "count": 24, "replay": false, "pairs": [["tests/eliscript/wasm-managed-arrays.eli", "tests/wasm-managed-arrays.test.mjs"], ["tests/eliscript/managed-container-cases.eli", "tests/helpers/managed-container-cases.mjs"], ["tests/eliscript/managed-container-install.eli", "tests/helpers/managed-container-install.mjs"]]}), ({"suite": "tests/backend-cli-isolation.test.mjs", "archive": "tests/backend-cli-isolation-test-legacy.mjs", "sha256": "fa389b5fa4c92bcb80611132397a29c58d6403952eef6bae69ee302619895a72", "count": 5, "replay": false, "pairs": [["tests/eliscript/backend-cli-isolation.eli", "tests/backend-cli-isolation.test.mjs"]]}), ({"suite": "tests/wasm-managed-project-sharing.test.mjs", "archive": "tests/wasm-managed-project-sharing.test.mjs", "sha256": "dc3b44f656da9f4126b09a7830e760e7e0bfcb7f8e738e357b3072baccb0c106", "count": 16, "replay": false, "pairs": [["tools/testing/managed-sharing-fixture.eli", "tools/testing/managed-sharing-fixture.mjs"], ["tests/eliscript/managed-sharing-fixture-install.eli", "tests/helpers/managed-sharing-fixture-install.mjs"], ["tests/eliscript/managed-sharing-fixture.eli", "tests/managed-sharing-fixture-selfhosted.test.mjs"]]}), ({"suite": "tests/wasm-managed-builtins.test.mjs", "archive": "tests/wasm-managed-builtins-test-legacy.mjs", "sha256": "4b716f8dce8fd610d06802f906f973ad9491bff980a0dcee92f68552240a9689", "count": 12, "replay": false, "pairs": [["tests/eliscript/wasm-managed-builtins.eli", "tests/wasm-managed-builtins.test.mjs"], ["tests/eliscript/managed-container-cases.eli", "tests/helpers/managed-container-cases.mjs"], ["tests/eliscript/managed-container-install.eli", "tests/helpers/managed-container-install.mjs"]]}), ({"suite": "tests/wasm-managed-identity.test.mjs", "archive": "tests/wasm-managed-identity-test-legacy.mjs", "sha256": "a58a31176ecf598f6670dd38888a83b33a090e885cc154575e5676e819969eb5", "count": 10, "replay": false, "pairs": [["tests/eliscript/wasm-managed-identity.eli", "tests/wasm-managed-identity.test.mjs"], ["tests/eliscript/managed-container-cases.eli", "tests/helpers/managed-container-cases.mjs"], ["tests/eliscript/managed-container-install.eli", "tests/helpers/managed-container-install.mjs"]]}), ({"suite": "tests/wasm-managed-object-integrity.test.mjs", "archive": "tests/wasm-managed-object-integrity-test-legacy.mjs", "sha256": "a6a752d58e7399aa5228061736c52cdd7ca81129b6ab810205f109317abed349", "count": 21, "replay": false, "pairs": [["tests/eliscript/wasm-managed-object-integrity.eli", "tests/wasm-managed-object-integrity.test.mjs"], ["tests/eliscript/managed-integrity-cases.eli", "tests/helpers/managed-integrity-cases.mjs"], ["tests/eliscript/managed-integrity-install.eli", "tests/helpers/managed-integrity-install.mjs"]]}), ({"suite": "tests/wasm-managed-function-properties.test.mjs", "archive": "tests/wasm-managed-function-properties.test.mjs", "sha256": "dc63fc65ca9a84ff6faac3f7666774e162bef2d4375140e40a17480673c90ce7", "count": 9, "replay": false, "pairs": [["tools/testing/generated-fixture-module.eli", "tools/testing/generated-fixture-module.mjs"], ["tools/testing/managed-function-properties-repairs.eli", "tools/testing/managed-function-properties-repairs.mjs"], ["tests/eliscript/managed-function-properties-install.eli", "tests/helpers/managed-function-properties-install.mjs"]]}), ({"suite": "tests/eliscript-protocol.test.mjs", "archive": "tests/eliscript-protocol-test-legacy.mjs", "sha256": "053b99e13aa1bfb42342bd2293d065a99458757a3cf205093e44fff46ab197c7", "count": 1, "replay": false, "executedSuite": "tests/eliscript-protocol-selfhosted.test.mjs", "pairs": [["tests/eliscript/eliscript-protocol.eli", "tests/eliscript-protocol-selfhosted.test.mjs"]]}), ({"suite": "tests/compiler-portable-guards.test.mjs", "archive": "tests/compiler-portable-guards-test-legacy.mjs", "sha256": "b0b9cd417a7427edd5be0aa5cbc190a19ed617d09a751f944a06a775e2438915", "count": 3, "replay": false, "pairs": [["tools/testing/generated-fixture-module.eli", "tools/testing/generated-fixture-module.mjs"], ["tools/testing/portable-node-fixtures.eli", "tools/testing/portable-node-fixtures.mjs"], ["tests/eliscript/portable-node-build.eli", "tests/helpers/portable-node-build.mjs"], ["tests/eliscript/portable-node-test.eli", "tests/helpers/portable-node-test.mjs"], ["tests/eliscript/portable-node-install.eli", "tests/helpers/portable-node-install.mjs"], ["tools/testing/wasm-static-snapshot.eli", "tools/testing/wasm-static-snapshot.mjs"], ["tools/testing/wasm-static-repairs.eli", "tools/testing/wasm-static-repairs.mjs"], ["tools/testing/number-text-node.eli", "tools/testing/number-text-node.mjs"], ["tests/eliscript/compiler-portable-guards.eli", "tests/compiler-portable-guards.test.mjs"]]}), ({"suite": "tests/compiler-portable-predicates.test.mjs", "archive": "tests/compiler-portable-predicates.test.mjs", "sha256": "4bbc319b83880938df01f3f952250b3a844f36975e4ad41edf7137122de6a894", "count": 17, "replay": false, "pairs": [["tools/testing/compiler-portable-fixtures.eli", "tools/testing/compiler-portable-fixtures.mjs"], ["tests/eliscript/compiler-portable-fixtures-install.eli", "tests/helpers/compiler-portable-fixtures-install.mjs"]]}), ({"suite": "tests/compiler-portable-reader.test.mjs", "archive": "tests/compiler-portable-reader.test.mjs", "sha256": "127bcc36ec328f1c6435904bc396347b32f744b943da4255af42e8ae7423198a", "count": 20, "replay": false, "inputs": ["tools/testing/fixtures/portable-reader-failure.eli"], "pairs": [["tools/testing/compiler-portable-fixtures.eli", "tools/testing/compiler-portable-fixtures.mjs"], ["tests/eliscript/compiler-portable-fixtures-install.eli", "tests/helpers/compiler-portable-fixtures-install.mjs"]]}), ({"suite": "tests/emacs-analysis-evidence.test.mjs", "archive": "tests/emacs-analysis-evidence.test.mjs", "sha256": "7adb647fd4de888fca31ea2d3726167a2dcd3d07a73baadeeee6de198e95dfa4", "count": 2, "replay": false, "pairs": [["tests/eliscript/managed-capacity-registration.eli", "tests/helpers/managed-capacity-registration.mjs"], ["tests/eliscript/managed-capacity-registration-tests.eli", "tests/managed-capacity-registration-selfhosted.test.mjs"]]}), ({"suite": "tests/native-node-memory.test.mjs", "archive": "tests/native-node-memory.test.mjs", "sha256": "4949de1619237a588945486e5f40958a9e248582db8f438e8a08d9da590e041c", "count": 9, "replay": false, "pairs": [["tools/testing/native-node-fixtures.eli", "tools/testing/native-node-fixtures.mjs"], ["tests/eliscript/native-node-boundaries.eli", "tests/helpers/native-node-boundaries.mjs"], ["tools/testing/compiler-portable-fixtures.eli", "tools/testing/compiler-portable-fixtures.mjs"], ["tests/eliscript/compiler-portable-fixtures-install.eli", "tests/helpers/compiler-portable-fixtures-install.mjs"]]}), ({"suite": "tests/wasm-managed-number-text.test.mjs", "archive": "tests/wasm-managed-number-text.test.mjs", "sha256": "efb82a6a9f2457924f661ceaf8780412e4d2c80a983a535b7c066817a9f9e913", "count": 9, "replay": false, "pairs": [["tools/testing/number-text-regressions.eli", "tools/testing/number-text-regressions.mjs"], ["tests/eliscript/number-text-cross-host.eli", "tests/helpers/number-text-cross-host.mjs"], ["tools/testing/number-text-node.eli", "tools/testing/number-text-node.mjs"], ["tests/eliscript/number-text-node-test.eli", "tests/helpers/number-text-node-test.mjs"], ["tests/eliscript/number-text-node-install.eli", "tests/helpers/number-text-node-install.mjs"], ["tests/eliscript/number-text-node-bridge.eli", "tests/number-text-node-bridge-selfhosted.test.mjs"]]}), ({"suite": "tests/wasm-managed-primitive-operators.test.mjs", "archive": "tests/wasm-managed-primitive-operators.test.mjs", "sha256": "35a423057162377838fdcd3a8a5ceec4634293fa5fe33450b39d4fafcfc48f22", "count": 17, "replay": false, "pairs": [["tools/testing/generated-fixture-module.eli", "tools/testing/generated-fixture-module.mjs"], ["tests/eliscript/numeric-seed-node.eli", "tests/helpers/numeric-seed-node.mjs"], ["tools/testing/managed-numeric-fixtures.eli", "tools/testing/managed-numeric-fixtures.mjs"], ["tests/eliscript/managed-numeric-fixtures-install.eli", "tests/helpers/managed-numeric-fixtures-install.mjs"]]}), ({"suite": "tests/managed-stdlib-value-json.test.mjs", "archive": "tests/managed-stdlib-value-json.test.mjs", "sha256": "3e91ede35722125fd5b4b10d5f6c86bd530f7a4a2adfdf576e9b3dda72b7ae8d", "count": 5, "replay": true, "pairs": [["tests/eliscript/standard-library-fixture.eli", "tests/helpers/standard-library-fixture.mjs"], ["tests/eliscript/standard-library-fixture-install.eli", "tests/helpers/standard-library-fixture-install.mjs"], ["tests/eliscript/standard-library-fixture-tests.eli", "tests/standard-library-fixture-selfhosted.test.mjs"]]})];
|
|
448
|
+
__eliscript_tdz_ready_8 = true;
|
|
449
|
+
function portable_predicate_cases(suite, source) {
|
|
450
|
+
if ((!(hash(source) === "4bbc319b83880938df01f3f952250b3a844f36975e4ad41edf7137122de6a894"))) {
|
|
451
|
+
((__eliscript_value_46) => { throw __eliscript_value_46; })(new (globalThis.TypeError)("the exact original portable predicate source changed"));
|
|
452
|
+
}
|
|
453
|
+
{
|
|
454
|
+
let start = (source)["indexOf"]("test('Given original '");
|
|
455
|
+
let next = (source)["indexOf"]("\ntest(", start);
|
|
456
|
+
let offset = (next + 1);
|
|
457
|
+
let end = next;
|
|
458
|
+
let expression_end = (source)["indexOf"](", () => {", start);
|
|
459
|
+
let rows = Array.from((source)["matchAll"](new (globalThis.RegExp)("^ \\['([^']+)', '([^']+)',", "gm")));
|
|
460
|
+
let registration = (source)["slice"](start, end);
|
|
461
|
+
let fixed = originalSourceCaseLocators(suite, (source)["slice"](offset));
|
|
462
|
+
let result = [];
|
|
463
|
+
if ((!(__eliscript_numeric_relation(">", start, 0) && __eliscript_numeric_relation(">", next, start) && __eliscript_numeric_relation(">", expression_end, start) && ((source)["slice"](__eliscript_numeric_sub(end, 3), end) === "});") && (((rows) ?? []).length === 11) && (((fixed) ?? []).length === 6)))) {
|
|
464
|
+
((__eliscript_value_47) => { throw __eliscript_value_47; })(new (globalThis.TypeError)("the complete original portable predicate case inventory changed"));
|
|
465
|
+
}
|
|
466
|
+
(rows)["forEach"](((row, variant) => {
|
|
467
|
+
{
|
|
468
|
+
let input_start = (row)["index"];
|
|
469
|
+
let input_end = (source)["indexOf"]("\n", input_start);
|
|
470
|
+
let title = (String("Given original ") + String((row)[1]) + String(" helper ") + String((row)[2]) + String(", when compiled as an independent predicate unit, then managed WASM needs no raw JavaScript function"));
|
|
471
|
+
if ((!__eliscript_numeric_relation("<", input_end, start))) {
|
|
472
|
+
((__eliscript_value_48) => { throw __eliscript_value_48; })(new (globalThis.TypeError)("predicate inputs escaped their original binding"));
|
|
473
|
+
}
|
|
474
|
+
return (result)["push"](({"id": (String("stable-compatibility:source-case:") + String(suite) + String(":0:") + String(variant)), "file": suite, "kind": "test", "contains": title, "originalCase": ({"title": title, "templateTitle": "Given original ", "titleExpression": (source)["slice"]((start + 5), expression_end), "parameters": ({"file": (row)[1], "name": (row)[2]}), "titleKind": "expression", "sourceSha256": hash(source), "timeoutMs": 5000, "registration": "test", "span": ({"start": start, "end": end}), "byteStart": (Buffer)["byteLength"]((source)["slice"](0, start)), "byteEnd": (Buffer)["byteLength"]((source)["slice"](0, end)), "sha256": hash(registration), "input": ({"span": ({"start": input_start, "end": input_end}), "sha256": hash((source)["slice"](input_start, input_end))})})}));
|
|
475
|
+
}
|
|
476
|
+
}));
|
|
477
|
+
(fixed)["forEach"](((item, index) => {
|
|
478
|
+
{
|
|
479
|
+
let original = (item)["originalCase"];
|
|
480
|
+
let span = (original)["span"];
|
|
481
|
+
let begin = (offset + (span)["start"]);
|
|
482
|
+
let finish = (offset + (span)["end"]);
|
|
483
|
+
((item)["id"] = (String("stable-compatibility:source-case:") + String(suite) + String(":") + String((index + 1)) + String(":0")));
|
|
484
|
+
((original)["sourceSha256"] = hash(source));
|
|
485
|
+
((original)["span"] = ({"start": begin, "end": finish}));
|
|
486
|
+
((original)["byteStart"] = (Buffer)["byteLength"]((source)["slice"](0, begin)));
|
|
487
|
+
((original)["byteEnd"] = (Buffer)["byteLength"]((source)["slice"](0, finish)));
|
|
488
|
+
return (result)["push"](item);
|
|
489
|
+
}
|
|
490
|
+
}));
|
|
491
|
+
return result;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function final_fixture_cases(suite, source) {
|
|
495
|
+
if ((suite === "tests/native-node-memory.test.mjs")) {
|
|
496
|
+
if ((!(hash(source) === "4949de1619237a588945486e5f40958a9e248582db8f438e8a08d9da590e041c"))) {
|
|
497
|
+
((__eliscript_value_49) => { throw __eliscript_value_49; })(new (globalThis.TypeError)("the exact native Node fixture source changed"));
|
|
498
|
+
}
|
|
499
|
+
return (originalSourceCaseLocators(suite, __eliscript_at_direct((source)["split"]("nativeTest"), "join", "actualTest")))["map"](((item) => {
|
|
500
|
+
{
|
|
501
|
+
let original = (item)["originalCase"];
|
|
502
|
+
let span = (original)["span"];
|
|
503
|
+
((original)["registration"] = "nativeTest");
|
|
504
|
+
((original)["sourceSha256"] = hash(source));
|
|
505
|
+
((original)["sha256"] = hash((source)["slice"]((span)["start"], (span)["end"])));
|
|
506
|
+
return item;
|
|
507
|
+
}
|
|
508
|
+
}));
|
|
509
|
+
} else {
|
|
510
|
+
if ((suite === "tests/compiler-portable-predicates.test.mjs")) {
|
|
511
|
+
return portable_predicate_cases(suite, source);
|
|
512
|
+
} else {
|
|
513
|
+
if (((__eliscript_value_50, __eliscript_value_51) => (__eliscript_value_50 !== __eliscript_value_51))(suite, "tests/wasm-managed-object-integrity.test.mjs")) {
|
|
514
|
+
return originalSourceCaseLocators(suite, source);
|
|
515
|
+
} else {
|
|
516
|
+
{
|
|
517
|
+
let identity = hash(source);
|
|
518
|
+
let boundary = (source)["indexOf"]("const integrityScenarios=[");
|
|
519
|
+
let start = (source)["lastIndexOf"]("test('Scenario: '");
|
|
520
|
+
let tail = (source)["lastIndexOf"]("}});});");
|
|
521
|
+
let end = (tail + 4);
|
|
522
|
+
if ((!((identity === "a6a752d58e7399aa5228061736c52cdd7ca81129b6ab810205f109317abed349") && __eliscript_numeric_relation(">", boundary, 0) && __eliscript_numeric_relation(">", start, boundary) && __eliscript_numeric_relation(">", tail, start)))) {
|
|
523
|
+
((__eliscript_value_52) => { throw __eliscript_value_52; })(new (globalThis.TypeError)("the exact original integrity scenario source changed"));
|
|
524
|
+
}
|
|
525
|
+
{
|
|
526
|
+
let cases = originalSourceCaseLocators(suite, (source)["slice"](0, boundary));
|
|
527
|
+
let registration = (source)["slice"](start, end);
|
|
528
|
+
let expression_end = (source)["indexOf"](",async()=>", start);
|
|
529
|
+
let expression = (source)["slice"]((start + 5), expression_end);
|
|
530
|
+
let pattern = new (globalThis.RegExp)("\\{id:'([^']+)',given:'([^']+)',when:'([^']+)',then:'([^']+)',source:", "g");
|
|
531
|
+
let rows = Array.from((source)["matchAll"](pattern));
|
|
532
|
+
if ((!((((cases) ?? []).length === 17) && (((rows) ?? []).length === 4) && __eliscript_numeric_relation(">", expression_end, start)))) {
|
|
533
|
+
((__eliscript_value_53) => { throw __eliscript_value_53; })(new (globalThis.TypeError)("the complete integrity literal and scenario inventories changed"));
|
|
534
|
+
}
|
|
535
|
+
(cases)["forEach"](((item) => {
|
|
536
|
+
return (((item)["originalCase"])["sourceSha256"] = identity);
|
|
537
|
+
}));
|
|
538
|
+
(rows)["forEach"](((row, variant) => {
|
|
539
|
+
{
|
|
540
|
+
let input_start = (row)["index"];
|
|
541
|
+
let input_end = (source)["indexOf"]("\n", input_start);
|
|
542
|
+
let input = (source)["slice"](input_start, input_end);
|
|
543
|
+
let scenario = ({"id": (row)[1], "given": (row)[2], "when": (row)[3], "then": (row)[4]});
|
|
544
|
+
let title = (String("Scenario: ") + String((row)[1]) + String("\nGiven ") + String((row)[2]) + String("\nWhen ") + String((row)[3]) + String("\nThen ") + String((row)[4]));
|
|
545
|
+
if ((!(__eliscript_numeric_relation(">", input_start, boundary) && __eliscript_numeric_relation("<", input_end, start)))) {
|
|
546
|
+
((__eliscript_value_54) => { throw __eliscript_value_54; })(new (globalThis.TypeError)("the original integrity scenario input escaped its real source region"));
|
|
547
|
+
}
|
|
548
|
+
return (cases)["push"](({"id": (String("stable-compatibility:source-case:") + String(suite) + String(":17:") + String(variant)), "file": suite, "kind": "test", "contains": title, "originalCase": ({"title": title, "templateTitle": "Scenario: ", "titleExpression": expression, "parameters": ({"scenario": scenario}), "titleKind": "expression", "sourceSha256": identity, "timeoutMs": 5000, "registration": "test", "span": ({"start": start, "end": end}), "byteStart": (Buffer)["byteLength"]((source)["slice"](0, start)), "byteEnd": (Buffer)["byteLength"]((source)["slice"](0, end)), "sha256": hash(registration), "input": ({"span": ({"start": input_start, "end": input_end}), "byteStart": (Buffer)["byteLength"]((source)["slice"](0, input_start)), "byteEnd": (Buffer)["byteLength"]((source)["slice"](0, input_end)), "sha256": hash(input)})})}));
|
|
549
|
+
}
|
|
550
|
+
}));
|
|
551
|
+
return cases;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
async function readOriginalFinalFixtureMigrations(options) {
|
|
559
|
+
return (await (async (result, plan_index) => {
|
|
560
|
+
(await (async () => {
|
|
561
|
+
while (__eliscript_numeric_relation("<", plan_index, (((__eliscript_tdz_read_8())) ?? []).length)) {
|
|
562
|
+
(await (async (plan) => {
|
|
563
|
+
return (await (async (archive) => {
|
|
564
|
+
return (await (async (original) => {
|
|
565
|
+
return (await (async (proof) => {
|
|
566
|
+
return (await (async (cases) => {
|
|
567
|
+
return (await (async (assets) => {
|
|
568
|
+
return (await (async (pairs) => {
|
|
569
|
+
return (await (async (index) => {
|
|
570
|
+
return (await (async () => {
|
|
571
|
+
if ((!(((proof)["sourceSha256"] === (plan)["sha256"]) && (((cases) ?? []).length === (plan)["count"])))) {
|
|
572
|
+
((__eliscript_value_55) => { throw __eliscript_value_55; })(new (globalThis.TypeError)((String("original final fixture identity or full case inventory changed: ") + String(archive))));
|
|
573
|
+
}
|
|
574
|
+
(await (async () => {
|
|
575
|
+
while (__eliscript_numeric_relation("<", index, ((pairs) ?? []).length)) {
|
|
576
|
+
(await (async (pair) => {
|
|
577
|
+
return (await (async (source) => {
|
|
578
|
+
return (await (async (generated) => {
|
|
579
|
+
return ((mapping) => {
|
|
580
|
+
return ((map) => {
|
|
581
|
+
return (() => {
|
|
582
|
+
if ((!(((map)["version"] === 3) && ((map)["file"] === (posix)["basename"]((pair)[1])) && ((((map)["sources"]) ?? []).length === 1) && ((((map)["sourcesContent"]) ?? []).length === 1) && (((map)["sourcesContent"])[0] === (source)["source"]) && ((posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"]((pair)[1]), ((map)["sources"])[0])) === (pair)[0])))) {
|
|
583
|
+
((__eliscript_value_56) => { throw __eliscript_value_56; })(new (globalThis.TypeError)((String("final fixture map does not bind its maintained source: ") + String((pair)[1]))));
|
|
584
|
+
}
|
|
585
|
+
return (assets)["push"]((source)["proof"], (generated)["proof"], (mapping)["proof"]);
|
|
586
|
+
})();
|
|
587
|
+
})(JSON.parse((mapping)["source"]));
|
|
588
|
+
})(await (browser_source_asset(options, (String((pair)[1]) + String(".map")))));
|
|
589
|
+
})(await (browser_source_asset(options, (pair)[1]))));
|
|
590
|
+
})(await (browser_source_asset(options, (pair)[0]))));
|
|
591
|
+
})((pairs)[index]));
|
|
592
|
+
((index = (index + 1)));
|
|
593
|
+
}
|
|
594
|
+
return null;
|
|
595
|
+
})());
|
|
596
|
+
(await (async (inputs) => {
|
|
597
|
+
return (await (async (position) => {
|
|
598
|
+
return (await (async () => {
|
|
599
|
+
while (__eliscript_numeric_relation("<", position, ((inputs) ?? []).length)) {
|
|
600
|
+
(assets)["push"]((await (browser_source_asset(options, (inputs)[position])))["proof"]);
|
|
601
|
+
((position = (position + 1)));
|
|
602
|
+
}
|
|
603
|
+
return null;
|
|
604
|
+
})());
|
|
605
|
+
})(0));
|
|
606
|
+
})(((plan)["inputs"] ?? [])));
|
|
607
|
+
return (result)["push"](({"suite": (plan)["suite"], "executedSuite": ((plan)["executedSuite"] ?? (plan)["suite"]), "sourceAssets": assets, "existingReplaySuite": (plan)["replay"], "execution": "final-make-gate-only-not-a-target-record", "gateCommand": "make test", "targetExecution": false, "assertionSource": Object.assign(({}), proof, ({"cases": (cases)["map"](((item) => {
|
|
608
|
+
return Object.assign(({}), item, ({"file": archive, "sourceFile": archive, "originalSuite": (plan)["suite"], "originalCase": Object.assign(({}), (item)["originalCase"], ({"sourceFile": archive}))}));
|
|
609
|
+
}))}))}));
|
|
610
|
+
})());
|
|
611
|
+
})(0));
|
|
612
|
+
})((plan)["pairs"]));
|
|
613
|
+
})([proof]));
|
|
614
|
+
})(final_fixture_cases((plan)["suite"], (original)["source"])));
|
|
615
|
+
})((original)["proof"]));
|
|
616
|
+
})(await (browser_source_asset(options, archive))));
|
|
617
|
+
})((plan)["archive"]));
|
|
618
|
+
})(((__eliscript_tdz_read_8()))[plan_index]));
|
|
619
|
+
((plan_index = (plan_index + 1)));
|
|
620
|
+
}
|
|
621
|
+
return null;
|
|
622
|
+
})());
|
|
623
|
+
return result;
|
|
624
|
+
})([], 0));
|
|
625
|
+
}
|
|
626
|
+
async function final_fixture_record(record, options) {
|
|
627
|
+
return (await (async (original) => {
|
|
628
|
+
return (await (async (migrations) => {
|
|
629
|
+
return (await (async (repairs) => {
|
|
630
|
+
return (await (async (assets) => {
|
|
631
|
+
return (await (async (coverage) => {
|
|
632
|
+
return (await (async (fixture_inputs) => {
|
|
633
|
+
return (await (async () => {
|
|
634
|
+
(migrations)["forEach"](((migration) => {
|
|
635
|
+
if (__eliscript_truthy(((__eliscript_value_57) => (__eliscript_truthy(__eliscript_value_57) ? (!__eliscript_truthy(((original)["suites"])["some"](((suite) => {
|
|
636
|
+
return ((suite)["file"] === (migration)["suite"]);
|
|
637
|
+
})))) : __eliscript_value_57))((migration)["existingReplaySuite"]))) {
|
|
638
|
+
((__eliscript_value_58) => { throw __eliscript_value_58; })(new (globalThis.TypeError)("migrated final fixture is absent from its actual original replay"));
|
|
639
|
+
}
|
|
640
|
+
return ((migration)["sourceAssets"])["forEach"](((asset) => {
|
|
641
|
+
{
|
|
642
|
+
const __eliscript_value_59 = (assets)["find"](((item) => {
|
|
643
|
+
return ((item)["file"] === (asset)["file"]);
|
|
644
|
+
}));
|
|
645
|
+
{
|
|
646
|
+
let previous = __eliscript_value_59;
|
|
647
|
+
if (__eliscript_truthy(((__eliscript_value_60) => (__eliscript_truthy(__eliscript_value_60) ? ((__eliscript_value_61, __eliscript_value_62) => (__eliscript_value_61 !== __eliscript_value_62))((previous)["sourceSha256"], (asset)["sourceSha256"]) : __eliscript_value_60))(previous))) {
|
|
648
|
+
((__eliscript_value_63) => { throw __eliscript_value_63; })(new (globalThis.TypeError)("final fixture source identity conflicts with original replay"));
|
|
649
|
+
}
|
|
650
|
+
if ((!__eliscript_truthy(previous))) {
|
|
651
|
+
return (assets)["push"](asset);
|
|
652
|
+
} else {
|
|
653
|
+
return null;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}));
|
|
658
|
+
}));
|
|
659
|
+
((repairs)["sourceAssets"])["forEach"](((asset) => {
|
|
660
|
+
{
|
|
661
|
+
const __eliscript_value_64 = (assets)["find"](((item) => {
|
|
662
|
+
return ((item)["file"] === (asset)["file"]);
|
|
663
|
+
}));
|
|
664
|
+
{
|
|
665
|
+
let previous = __eliscript_value_64;
|
|
666
|
+
if (__eliscript_truthy(((__eliscript_value_65) => (__eliscript_truthy(__eliscript_value_65) ? ((__eliscript_value_66, __eliscript_value_67) => (__eliscript_value_66 !== __eliscript_value_67))((previous)["sourceSha256"], (asset)["sourceSha256"]) : __eliscript_value_65))(previous))) {
|
|
667
|
+
((__eliscript_value_68) => { throw __eliscript_value_68; })(new (globalThis.TypeError)("managed fixture repair source identity conflicts with its original replay"));
|
|
668
|
+
}
|
|
669
|
+
if ((!__eliscript_truthy(previous))) {
|
|
670
|
+
return (assets)["push"](asset);
|
|
671
|
+
} else {
|
|
672
|
+
return null;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}));
|
|
677
|
+
(await (async (supplemental, position) => {
|
|
678
|
+
return (await (async () => {
|
|
679
|
+
while (__eliscript_numeric_relation("<", position, ((supplemental) ?? []).length)) {
|
|
680
|
+
(await (async (plan) => {
|
|
681
|
+
return (await (async (filename) => {
|
|
682
|
+
return (await (async (source_file) => {
|
|
683
|
+
return (await (async (suite) => {
|
|
684
|
+
return (__eliscript_truthy(((options)["stableFiles"])["has"](filename)) ? (await (async (source) => {
|
|
685
|
+
return (await (async (generated) => {
|
|
686
|
+
return ((mapping) => {
|
|
687
|
+
return ((map) => {
|
|
688
|
+
return ((cases) => {
|
|
689
|
+
return (() => {
|
|
690
|
+
if ((!__eliscript_truthy(((__eliscript_value_69) => (__eliscript_truthy(__eliscript_value_69) ? ((__eliscript_value_70) => (__eliscript_truthy(__eliscript_value_70) ? ((__eliscript_value_71) => (__eliscript_truthy(__eliscript_value_71) ? ((__eliscript_value_72) => (__eliscript_truthy(__eliscript_value_72) ? ((__eliscript_value_73) => (__eliscript_truthy(__eliscript_value_73) ? ((__eliscript_value_74) => (__eliscript_truthy(__eliscript_value_74) ? ((__eliscript_value_75) => (__eliscript_truthy(__eliscript_value_75) ? ((__eliscript_value_76) => (__eliscript_truthy(__eliscript_value_76) ? ((__eliscript_value_77) => (__eliscript_truthy(__eliscript_value_77) ? (cases)["every"](((item) => {
|
|
691
|
+
return ((generated)["source"])["includes"](JSON.stringify(((item)["originalCase"])["title"]));
|
|
692
|
+
})) : __eliscript_value_77))(((posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"](suite), ((map)["sources"])[0])) === source_file)) : __eliscript_value_76))((((map)["sourcesContent"])[0] === (source)["source"])) : __eliscript_value_75))(((((map)["sourcesContent"]) ?? []).length === 1)) : __eliscript_value_74))(((((map)["sources"]) ?? []).length === 1)) : __eliscript_value_73))(((map)["file"] === (posix)["basename"](suite))) : __eliscript_value_72))(((map)["version"] === 3)) : __eliscript_value_71))((((record)["execution"])["hostSource"])["includes"](JSON.stringify(suite))) : __eliscript_value_70))(((original)["suites"])["some"](((item) => {
|
|
693
|
+
return ((item)["file"] === suite);
|
|
694
|
+
}))) : __eliscript_value_69))((((cases) ?? []).length === (plan)[3]))))) {
|
|
695
|
+
((__eliscript_value_78) => { throw __eliscript_value_78; })(new (globalThis.TypeError)((String(suite) + String(" requires its real complete replay and maintained source map"))));
|
|
696
|
+
}
|
|
697
|
+
return ([source, generated, mapping])["forEach"](((item) => {
|
|
698
|
+
{
|
|
699
|
+
const __eliscript_value_79 = (item)["proof"];
|
|
700
|
+
{
|
|
701
|
+
let proof = __eliscript_value_79;
|
|
702
|
+
if ((!__eliscript_truthy((assets)["some"](((asset) => {
|
|
703
|
+
return ((asset)["file"] === (proof)["file"]);
|
|
704
|
+
}))))) {
|
|
705
|
+
return (assets)["push"](proof);
|
|
706
|
+
} else {
|
|
707
|
+
return null;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}));
|
|
712
|
+
})();
|
|
713
|
+
})(readOriginalManagedBrowserCases((source)["source"], source_file));
|
|
714
|
+
})(JSON.parse((mapping)["source"]));
|
|
715
|
+
})(await (browser_source_asset(options, (String(suite) + String(".map")))));
|
|
716
|
+
})(await (browser_source_asset(options, suite))));
|
|
717
|
+
})(await (browser_source_asset(options, source_file)))) : null);
|
|
718
|
+
})((plan)[2]));
|
|
719
|
+
})((plan)[1]));
|
|
720
|
+
})((plan)[0]));
|
|
721
|
+
})((supplemental)[position]));
|
|
722
|
+
((position = (position + 1)));
|
|
723
|
+
}
|
|
724
|
+
return null;
|
|
725
|
+
})());
|
|
726
|
+
})([["tests/fixtures/wasm-managed-js-cons-fast.eli", "tests/eliscript/js-cons-fast-path.eli", "tests/wasm-managed-js-cons-fast.test.mjs", 3], ["tests/fixtures/persistent-vector-copy.eli", "tests/eliscript/persistent-vector-copy.eli", "tests/wasm-managed-vector-copy.test.mjs", 3], ["tests/fixtures/wasm-managed-type-construction.eli", "tests/eliscript/managed-type-construction.eli", "tests/wasm-managed-type-construction.test.mjs", 10]], 0));
|
|
727
|
+
(await (async (plans, index) => {
|
|
728
|
+
return (await (async () => {
|
|
729
|
+
while (__eliscript_numeric_relation("<", index, ((plans) ?? []).length)) {
|
|
730
|
+
(await (async (plan) => {
|
|
731
|
+
return (await (async (filename) => {
|
|
732
|
+
return (await (async (suite) => {
|
|
733
|
+
return (await (async (maintained) => {
|
|
734
|
+
return (__eliscript_truthy(((options)["stableFiles"])["has"](filename)) ? (await (async () => {
|
|
735
|
+
if ((!__eliscript_truthy(((original)["suites"])["some"](((item) => {
|
|
736
|
+
return ((item)["file"] === suite);
|
|
737
|
+
}))))) {
|
|
738
|
+
((__eliscript_value_80) => { throw __eliscript_value_80; })(new (globalThis.TypeError)("maintained fixture input is absent from its complete original replay"));
|
|
739
|
+
}
|
|
740
|
+
return (await (async (input) => {
|
|
741
|
+
return ((source) => {
|
|
742
|
+
return ((proof) => {
|
|
743
|
+
return ((id) => {
|
|
744
|
+
return (() => {
|
|
745
|
+
if ((!__eliscript_truthy((assets)["some"](((asset) => {
|
|
746
|
+
return (((asset)["file"] === maintained) && ((asset)["sourceSha256"] === (proof)["sourceSha256"]));
|
|
747
|
+
}))))) {
|
|
748
|
+
((__eliscript_value_81) => { throw __eliscript_value_81; })(new (globalThis.TypeError)("maintained fixture input lost its authenticated execution source"));
|
|
749
|
+
}
|
|
750
|
+
if ((!__eliscript_truthy((((index === 2) || (index === 3)) ? ((__eliscript_value_82) => (__eliscript_truthy(__eliscript_value_82) ? ((source)["source"])["includes"]("(js-array \"species\" \"accessor\")") : __eliscript_value_82))(((source)["source"])["includes"]("tests/fixtures/managed-splice-")) : ((source)["source"])["includes"](filename))))) {
|
|
751
|
+
((__eliscript_value_83) => { throw __eliscript_value_83; })(new (globalThis.TypeError)("maintained execution source no longer reads its declared fixture input"));
|
|
752
|
+
}
|
|
753
|
+
{
|
|
754
|
+
const __eliscript_value_84 = (assets)["find"](((asset) => {
|
|
755
|
+
return ((asset)["file"] === filename);
|
|
756
|
+
}));
|
|
757
|
+
{
|
|
758
|
+
let previous = __eliscript_value_84;
|
|
759
|
+
if (__eliscript_truthy(((__eliscript_value_85) => (__eliscript_truthy(__eliscript_value_85) ? ((__eliscript_value_86, __eliscript_value_87) => (__eliscript_value_86 !== __eliscript_value_87))((previous)["sourceSha256"], (input)["sourceSha256"]) : __eliscript_value_85))(previous))) {
|
|
760
|
+
((__eliscript_value_88) => { throw __eliscript_value_88; })(new (globalThis.TypeError)("maintained fixture input differs from its retained source asset"));
|
|
761
|
+
}
|
|
762
|
+
if ((!__eliscript_truthy(previous))) {
|
|
763
|
+
(assets)["push"](input);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
if ((!__eliscript_truthy((coverage)["includes"](id)))) {
|
|
768
|
+
(coverage)["push"](id);
|
|
769
|
+
}
|
|
770
|
+
return (fixture_inputs)["push"](Object.assign(({}), input, ({"suite": suite, "coverageId": id, "executionSource": proof, "execution": "complete-maintained-original-suite-input"})));
|
|
771
|
+
})();
|
|
772
|
+
})((String("stable-compatibility:") + String(filename)));
|
|
773
|
+
})((source)["proof"]);
|
|
774
|
+
})(await (browser_source_asset(options, maintained)));
|
|
775
|
+
})((await (browser_source_asset(options, filename)))["proof"]));
|
|
776
|
+
})()) : null);
|
|
777
|
+
})((plan)[2]));
|
|
778
|
+
})((plan)[1]));
|
|
779
|
+
})((plan)[0]));
|
|
780
|
+
})((plans)[index]));
|
|
781
|
+
((index = (index + 1)));
|
|
782
|
+
}
|
|
783
|
+
return null;
|
|
784
|
+
})());
|
|
785
|
+
})([["tests/fixtures/wasm-managed-text.eli", "tests/wasm-managed-runtime.test.mjs", "tests/wasm-managed-runtime-test-legacy.mjs"], ["tests/fixtures/managed-splice-rejected.eli", "tests/wasm-managed-array-splice.test.mjs", "tools/testing/managed-array-repairs.eli"], ["tests/fixtures/managed-splice-species.eli", "tests/wasm-managed-array-splice.test.mjs", "tools/testing/managed-array-repairs.eli"], ["tests/fixtures/managed-splice-accessor.eli", "tests/wasm-managed-array-splice.test.mjs", "tools/testing/managed-array-repairs.eli"], ["tests/fixtures/managed-splice-observe.eli", "tests/wasm-managed-array-splice.test.mjs", "tools/testing/managed-array-repairs.eli"], ["tests/fixtures/wasm-managed-js-cons-fast.eli", "tests/wasm-managed-js-cons-fast.test.mjs", "tests/eliscript/js-cons-fast-path.eli"], ["tests/fixtures/persistent-vector-copy.eli", "tests/wasm-managed-vector-copy.test.mjs", "tests/eliscript/persistent-vector-copy.eli"], ["tests/fixtures/wasm-managed-type-construction.eli", "tests/wasm-managed-type-construction.test.mjs", "tests/eliscript/managed-type-construction.eli"]], 0));
|
|
786
|
+
return Object.assign(({}), record, ({"coverage": coverage, "original": Object.assign(({}), original, ({"sourceAssets": assets, "finalGateSuiteMigrations": migrations, "fixtureRepairs": repairs, "maintainedFinalFixtureInputs": fixture_inputs}))}));
|
|
787
|
+
})());
|
|
788
|
+
})([]));
|
|
789
|
+
})(((record)["coverage"])["slice"]()));
|
|
790
|
+
})((((original)["sourceAssets"] ?? []))["slice"]()));
|
|
791
|
+
})(await (readOriginalManagedFixtureRepairs(options))));
|
|
792
|
+
})(await (readOriginalFinalFixtureMigrations(options))));
|
|
793
|
+
})((record)["original"]));
|
|
794
|
+
}
|
|
795
|
+
async function readOriginalManagedFixtureRepairs(options) {
|
|
796
|
+
return (await (async (assets, suites, plans, pairs, inputs, index) => {
|
|
797
|
+
(await (async () => {
|
|
798
|
+
while (__eliscript_numeric_relation("<", index, ((plans) ?? []).length)) {
|
|
799
|
+
(await (async (plan) => {
|
|
800
|
+
return ((source) => {
|
|
801
|
+
return ((proof) => {
|
|
802
|
+
return (() => {
|
|
803
|
+
if ((!((proof)["sourceSha256"] === (plan)[1]))) {
|
|
804
|
+
((__eliscript_value_89) => { throw __eliscript_value_89; })(new (globalThis.TypeError)("the complete original managed fixture repair suite source changed"));
|
|
805
|
+
}
|
|
806
|
+
(assets)["push"](proof);
|
|
807
|
+
return (suites)["push"](proof);
|
|
808
|
+
})();
|
|
809
|
+
})((source)["proof"]);
|
|
810
|
+
})(await (browser_source_asset(options, (plan)[0])));
|
|
811
|
+
})((plans)[index]));
|
|
812
|
+
((index = (index + 1)));
|
|
813
|
+
}
|
|
814
|
+
return null;
|
|
815
|
+
})());
|
|
816
|
+
((index = 0));
|
|
817
|
+
(await (async () => {
|
|
818
|
+
while (__eliscript_numeric_relation("<", index, ((inputs) ?? []).length)) {
|
|
819
|
+
((input) => {
|
|
820
|
+
if (__eliscript_truthy(((__eliscript_value_90) => (__eliscript_truthy(__eliscript_value_90) ? ((__eliscript_value_91, __eliscript_value_92) => (__eliscript_value_91 !== __eliscript_value_92))(((input)["proof"])["sourceSha256"], ((suites)[((index === 4) ? 10 : 11)])["sourceSha256"]) : __eliscript_value_90))(((inputs)[index])["endsWith"]("-test-legacy.mjs")))) {
|
|
821
|
+
((__eliscript_value_93) => { throw __eliscript_value_93; })(new (globalThis.TypeError)("the original array repair archive differs from its unchanged suite"));
|
|
822
|
+
}
|
|
823
|
+
return (assets)["push"]((input)["proof"]);
|
|
824
|
+
})(await (browser_source_asset(options, (inputs)[index])));
|
|
825
|
+
((index = (index + 1)));
|
|
826
|
+
}
|
|
827
|
+
return null;
|
|
828
|
+
})());
|
|
829
|
+
((index = 0));
|
|
830
|
+
(await (async () => {
|
|
831
|
+
while (__eliscript_numeric_relation("<", index, ((pairs) ?? []).length)) {
|
|
832
|
+
(await (async (pair) => {
|
|
833
|
+
return (await (async (source) => {
|
|
834
|
+
return (await (async (generated) => {
|
|
835
|
+
return ((mapping) => {
|
|
836
|
+
return ((map) => {
|
|
837
|
+
return (() => {
|
|
838
|
+
if ((!(((map)["version"] === 3) && ((map)["file"] === (posix)["basename"]((pair)[1])) && ((((map)["sources"]) ?? []).length === 1) && ((((map)["sourcesContent"]) ?? []).length === 1) && (((map)["sourcesContent"])[0] === (source)["source"]) && ((posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"]((pair)[1]), ((map)["sources"])[0])) === (pair)[0])))) {
|
|
839
|
+
((__eliscript_value_94) => { throw __eliscript_value_94; })(new (globalThis.TypeError)("managed fixture repair map does not bind its maintained source"));
|
|
840
|
+
}
|
|
841
|
+
return (assets)["push"]((source)["proof"], (generated)["proof"], (mapping)["proof"]);
|
|
842
|
+
})();
|
|
843
|
+
})(JSON.parse((mapping)["source"]));
|
|
844
|
+
})(await (browser_source_asset(options, (String((pair)[1]) + String(".map")))));
|
|
845
|
+
})(await (browser_source_asset(options, (pair)[1]))));
|
|
846
|
+
})(await (browser_source_asset(options, (pair)[0]))));
|
|
847
|
+
})((pairs)[index]));
|
|
848
|
+
((index = (index + 1)));
|
|
849
|
+
}
|
|
850
|
+
return null;
|
|
851
|
+
})());
|
|
852
|
+
return ({"sourceAssets": assets, "suites": suites, "execution": "complete-original-final-make-gates", "targetExecution": false});
|
|
853
|
+
})([], [], [["tests/wasm-managed-empty-bindings.test.mjs", "ecb157620b2a55b24962c2528dd81c3b3bfc71ba71b052a33a80cba2e59f639f"], ["tests/wasm-managed-callables.test.mjs", "b0b3137803b84d454a5b389b2616676f15f43d70d666bf617babd4d730e934ef"], ["tests/wasm-managed-realm-lifetime.test.mjs", "3e8722afe234131cf927c7999a52c4911a79aaeb233ce4177be5cb1d9e2feb6b"], ["tests/wasm-managed-native-prototype-callables.test.mjs", "768fcb829e7ef01dad76520eeed9b0c10a20d89440da7bbd48cfcf21c23bea4e"], ["tests/wasm-managed-str.test.mjs", "94bfa646c922c1c87ea9bf5e7c1e686cbc09ba06e67c8c02ea4df89902607ce2"], ["tests/wasm-managed-array-inheritance.test.mjs", "c0590bcde56a736363797834e27fdfd91bcd27d4de0ed3df38a507dc28177011"], ["tests/wasm-managed-array-index-storage.test.mjs", "335f342bc2873f2c1580ce51789e407c00a0fb1e9b53c9c63ec49d179a5e8fac"], ["tests/wasm-managed-variadic-calls.test.mjs", "2b18ecbbc8193e36d8bb2cd070cd27e137eafecafb3df446b3a4830793a550d6"], ["tests/wasm-managed-typeof.test.mjs", "f55d60a967d030c61e0c2ab80bb4670abf252cfff46f3610184ddd8cd0882f7b"], ["tests/wasm-managed-typeof-paths.test.mjs", "47251c18ed5f48e1ff9d42f09539a343bf208153f35875dc8f0648ee714da0f3"], ["tests/wasm-managed-array-callbacks.test.mjs", "0f5c51587744164bb77fe7dd59d82a3af09c56a09ce8d87d9b75401589b2985a"], ["tests/wasm-managed-array-splice.test.mjs", "166cfd99b0de0e64a2abb15bf1578372203ea73348be8ab317e5acf78550c8af"], ["tests/wasm-managed-project-linking.test.mjs", "fd9c909b7e5fa57ee9237385c142349fdad1b9d66d5e9d603c2323cdf3ec0c07"], ["tests/wasm-managed-strings.test.mjs", "33da413ad48d3b359663aa6109ca390eee68a5124d9a8634ac02a91988b06507"], ["tests/wasm-managed-text-constructors.test.mjs", "30a083b2072d64bea0be1dcbfbacd833dc63afad32ff34a873875458e20468f6"], ["tests/wasm-managed-regexp.test.mjs", "65d8dc751109174f90eb41ee0d0332e23e3b354d123c733448a84a32ad7ae2ad"], ["tests/wasm-managed-regexp-exact.test.mjs", "faf75947bef51313bdd45eb5f1a35df3f59cde46480ea2f982c1c903bfb9c125"], ["tests/wasm-managed-regexp-indices.test.mjs", "306a40b71bee4d072e1df807a992208a42659e73f3dc8f5ac737aa14cfc71ea3"], ["tests/regexp-property-outlining.test.mjs", "b45811f343ae5942e33c7bb2bb47fade0de2d0e5cfdb7cfc889f7d287660bcb9"], ["tests/compiler-fragment-combine.test.mjs", "5105cb3d9c727be942744a8f725dea0efd3a4fb2863f1d6a341249ca53fc561c"], ["tests/wasm-managed-persistent-literals.test.mjs", "bb8fe651361e49b5dee4f12252209a054401e03beed7d150efd8fd9781e81287"], ["tests/js-array-text-fast-path.test.mjs", "be07405cef94d217503e40a1606ccb7d0a824cb5a4ca63ebbe8bc3d415ce7def"], ["tests/wasm-managed-initializer-outlining.test.mjs", "e3d2cd7d8e3d5f28a08f20401cf8cfa48ed10743136a2e39ef9b895bbd5e074e"], ["tests/wasm-managed-primitive-own-runtime.test.mjs", "62d634ad2bf4e02f83a5fd2f7c7fc7cdf1ff570a81aada0d6e2e761d00c24069"], ["tests/wasm-managed-operand-conversion.test.mjs", "d9385ea1cf4c2b17bd046590950e524f1cbf2e33adf87afeceba8c554ea5a95d"], ["tests/wasm-managed-math.test.mjs", "364144cc482b0ea756505ee1723f3831f2d1439f147e9380906d6ef0c19b5b9d"]], [["tools/testing/managed-fixture-repairs.eli", "tools/testing/managed-fixture-repairs.mjs"], ["tools/testing/array-text-fixture.eli", "tools/testing/array-text-fixture.mjs"], ["tests/eliscript/array-text-fixture-install.eli", "tests/helpers/array-text-fixture-install.mjs"], ["tests/eliscript/array-text-fixture.eli", "tests/array-text-fixture-selfhosted.test.mjs"], ["tools/testing/initializer-array-fixture.eli", "tools/testing/initializer-array-fixture.mjs"], ["tools/testing/math-oracle-fixture.eli", "tools/testing/math-oracle-fixture.mjs"], ["tests/eliscript/math-oracle-fixture-install.eli", "tests/helpers/math-oracle-fixture-install.mjs"], ["tests/eliscript/math-oracle-fixture.eli", "tests/math-oracle-fixture-selfhosted.test.mjs"], ["tests/eliscript/initializer-array-fixture.eli", "tests/initializer-array-fixture-selfhosted.test.mjs"], ["tools/testing/managed-primitive-own-repairs.eli", "tools/testing/managed-primitive-own-repairs.mjs"], ["tests/eliscript/managed-primitive-own-repairs.eli", "tests/managed-primitive-own-repairs-selfhosted.test.mjs"], ["tests/eliscript/managed-fixture-repairs-install.eli", "tests/helpers/managed-fixture-repairs-install.mjs"], ["tests/eliscript/managed-reference-node.eli", "tests/helpers/managed-reference-node.mjs"], ["tests/eliscript/native-prototype-node.eli", "tests/helpers/native-prototype-node.mjs"], ["tests/eliscript/managed-fixture-repairs.eli", "tests/managed-fixture-repairs-selfhosted.test.mjs"], ["tests/eliscript/managed-capacity-registration.eli", "tests/helpers/managed-capacity-registration.mjs"], ["tests/eliscript/managed-capacity-registration-tests.eli", "tests/managed-capacity-registration-selfhosted.test.mjs"], ["tools/testing/managed-array-repairs.eli", "tools/testing/managed-array-repairs.mjs"], ["tests/eliscript/managed-regexp-oracle-node.eli", "tests/helpers/managed-regexp-oracle-node.mjs"], ["tools/testing/managed-regexp-repairs.eli", "tools/testing/managed-regexp-repairs.mjs"]], ["tests/fixtures/managed-splice-rejected.eli", "tests/fixtures/managed-splice-species.eli", "tests/fixtures/managed-splice-accessor.eli", "tests/fixtures/managed-splice-observe.eli", "tests/wasm-managed-array-callbacks-test-legacy.mjs", "tests/wasm-managed-array-splice-test-legacy.mjs", "runtime/unicode-case.eli", "runtime/unicode-case.mjs", "runtime/unicode-case-data.eli", "runtime/unicode-case-data.mjs", "runtime/math.eli", "runtime/math.mjs"], 0));
|
|
854
|
+
}
|
|
855
|
+
async function direct_wasm_source_migration(options) {
|
|
856
|
+
return (await (async (archive) => {
|
|
857
|
+
return (await (async (original) => {
|
|
858
|
+
return (await (async (proof) => {
|
|
859
|
+
return (await (async (assets) => {
|
|
860
|
+
return (await (async (pairs) => {
|
|
861
|
+
return (await (async (index) => {
|
|
862
|
+
return (await (async () => {
|
|
863
|
+
if ((!((proof)["sourceSha256"] === "f0fa57d2aae13f0bef9f7afa04ee51d1d3386c4a3e011ad231ad2577c99876c2"))) {
|
|
864
|
+
((__eliscript_value_95) => { throw __eliscript_value_95; })(new (globalThis.TypeError)("original direct WASM assertion archive identity changed"));
|
|
865
|
+
}
|
|
866
|
+
(await (async () => {
|
|
867
|
+
while (__eliscript_numeric_relation("<", index, ((pairs) ?? []).length)) {
|
|
868
|
+
(await (async (pair) => {
|
|
869
|
+
return (await (async (source) => {
|
|
870
|
+
return (await (async (generated) => {
|
|
871
|
+
return ((mapping) => {
|
|
872
|
+
return ((map) => {
|
|
873
|
+
return (() => {
|
|
874
|
+
if ((!(((map)["version"] === 3) && ((((map)["sourcesContent"]) ?? []).length === 1) && (((map)["sourcesContent"])[0] === (source)["source"]) && ((posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"]((pair)[1]), ((map)["sources"])[0])) === (pair)[0])))) {
|
|
875
|
+
((__eliscript_value_96) => { throw __eliscript_value_96; })(new (globalThis.TypeError)("direct WASM maintained map does not bind its actual source"));
|
|
876
|
+
}
|
|
877
|
+
return (assets)["push"]((source)["proof"], (generated)["proof"], (mapping)["proof"]);
|
|
878
|
+
})();
|
|
879
|
+
})(JSON.parse((mapping)["source"]));
|
|
880
|
+
})(await (browser_source_asset(options, (String((pair)[1]) + String(".map")))));
|
|
881
|
+
})(await (browser_source_asset(options, (pair)[1]))));
|
|
882
|
+
})(await (browser_source_asset(options, (pair)[0]))));
|
|
883
|
+
})((pairs)[index]));
|
|
884
|
+
((index = (index + 1)));
|
|
885
|
+
}
|
|
886
|
+
return null;
|
|
887
|
+
})());
|
|
888
|
+
return ({"assertionSource": Object.assign(({}), proof, ({"region": ({"start": 0, "end": (((original)["source"]) ?? []).length, "byteStart": 0, "byteEnd": (proof)["bytes"], "sha256": (proof)["sourceSha256"]})})), "executedSuite": "tests/direct-wasm-backend.test.mjs", "sourceAssets": assets, "registration": "complete-native-bun-registration-with-exact-maintained-callbacks"});
|
|
889
|
+
})());
|
|
890
|
+
})(0));
|
|
891
|
+
})([["tests/eliscript/direct-wasm-backend.eli", "tests/direct-wasm-backend.test.mjs"], ["tests/eliscript/direct-wasm-affected.eli", "tests/helpers/direct-wasm-affected.mjs"], ["tests/eliscript/direct-wasm-registration.eli", "tests/helpers/direct-wasm-registration.mjs"], ["tests/eliscript/direct-wasm-registration-install.eli", "tests/helpers/direct-wasm-registration-install.mjs"], ["tests/eliscript/direct-wasm-reflection-page.eli", "tests/helpers/direct-wasm-reflection-page.mjs"], ["tests/eliscript/direct-wasm-value-json-page.eli", "tests/helpers/direct-wasm-value-json-page.mjs"], ["tests/eliscript/direct-wasm-error-profile.eli", "tests/helpers/direct-wasm-error-profile.mjs"], ["tests/eliscript/direct-wasm-error-profile-tests.eli", "tests/direct-wasm-error-profile-selfhosted.test.mjs"], ["tests/eliscript/direct-wasm-registration-tests.eli", "tests/direct-wasm-registration-selfhosted.test.mjs"]]));
|
|
892
|
+
})([proof]));
|
|
893
|
+
})((original)["proof"]));
|
|
894
|
+
})(await (browser_source_asset(options, archive))));
|
|
895
|
+
})("tests/direct-wasm-backend-test-legacy.mjs"));
|
|
896
|
+
}
|
|
897
|
+
function project_entry_record(record, javascript, identity, bridge_assets, direct_migration) {
|
|
898
|
+
if (__eliscript_truthy(((__eliscript_value_97) => (__eliscript_truthy(__eliscript_value_97) ? (((record)["original"])["fixture"] === (__eliscript_tdz_read_3())) : __eliscript_value_97))((["original-managed-fixture:project-entry:node", "original-managed-fixture:project-entry:bun"])["includes"]((record)["id"])))) {
|
|
899
|
+
{
|
|
900
|
+
let original = (record)["original"];
|
|
901
|
+
let assets = (((original)["sourceAssets"] ?? []))["slice"]();
|
|
902
|
+
let previous = (assets)["find"](((item) => {
|
|
903
|
+
return ((item)["file"] === (__eliscript_tdz_read_5()));
|
|
904
|
+
}));
|
|
905
|
+
let proof = ({"file": (__eliscript_tdz_read_5()), "sourceSha256": (identity)["sha256"]});
|
|
906
|
+
if (__eliscript_truthy(((__eliscript_value_98) => (__eliscript_truthy(__eliscript_value_98) ? ((__eliscript_value_99, __eliscript_value_100) => (__eliscript_value_99 !== __eliscript_value_100))((previous)["sourceSha256"], (proof)["sourceSha256"]) : __eliscript_value_98))(previous))) {
|
|
907
|
+
((__eliscript_value_101) => { throw __eliscript_value_101; })(new (globalThis.TypeError)("original project-entry host source asset identity conflicts"));
|
|
908
|
+
}
|
|
909
|
+
if ((!__eliscript_truthy(previous))) {
|
|
910
|
+
(assets)["push"](proof);
|
|
911
|
+
}
|
|
912
|
+
(bridge_assets)["forEach"](((asset) => {
|
|
913
|
+
{
|
|
914
|
+
const __eliscript_value_102 = (assets)["find"](((item) => {
|
|
915
|
+
return ((item)["file"] === (asset)["file"]);
|
|
916
|
+
}));
|
|
917
|
+
{
|
|
918
|
+
let prior = __eliscript_value_102;
|
|
919
|
+
if (__eliscript_truthy(((__eliscript_value_103) => (__eliscript_truthy(__eliscript_value_103) ? ((__eliscript_value_104, __eliscript_value_105) => (__eliscript_value_104 !== __eliscript_value_105))((prior)["sourceSha256"], (asset)["sourceSha256"]) : __eliscript_value_103))(prior))) {
|
|
920
|
+
((__eliscript_value_106) => { throw __eliscript_value_106; })(new (globalThis.TypeError)("original project-entry host bridge source identity conflicts"));
|
|
921
|
+
}
|
|
922
|
+
if ((!__eliscript_truthy(prior))) {
|
|
923
|
+
return (assets)["push"](asset);
|
|
924
|
+
} else {
|
|
925
|
+
return null;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}));
|
|
930
|
+
((direct_migration)["sourceAssets"])["forEach"](((asset) => {
|
|
931
|
+
{
|
|
932
|
+
const __eliscript_value_107 = (assets)["find"](((item) => {
|
|
933
|
+
return ((item)["file"] === (asset)["file"]);
|
|
934
|
+
}));
|
|
935
|
+
{
|
|
936
|
+
let prior = __eliscript_value_107;
|
|
937
|
+
if (__eliscript_truthy(((__eliscript_value_108) => (__eliscript_truthy(__eliscript_value_108) ? ((__eliscript_value_109, __eliscript_value_110) => (__eliscript_value_109 !== __eliscript_value_110))((prior)["sourceSha256"], (asset)["sourceSha256"]) : __eliscript_value_108))(prior))) {
|
|
938
|
+
((__eliscript_value_111) => { throw __eliscript_value_111; })(new (globalThis.TypeError)("direct WASM source archive conflicts with its actual execution assets"));
|
|
939
|
+
}
|
|
940
|
+
if ((!__eliscript_truthy(prior))) {
|
|
941
|
+
return (assets)["push"](asset);
|
|
942
|
+
} else {
|
|
943
|
+
return null;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}));
|
|
948
|
+
return Object.assign(({}), record, ({"execution": Object.assign(({}), (record)["execution"], ({"hostSource": javascript})), "original": Object.assign(({}), original, ({"sourceAssets": assets, "suite": ((direct_migration)["assertionSource"])["file"], "sourceSha256": ((direct_migration)["assertionSource"])["sourceSha256"], "assertionSource": (direct_migration)["assertionSource"], "directWasmSourceMigration": direct_migration}))}));
|
|
949
|
+
}
|
|
950
|
+
} else {
|
|
951
|
+
return record;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
function intrinsic_observation(value) {
|
|
955
|
+
if ((value === undefined)) {
|
|
956
|
+
return ({"$eliscriptObservation": "undefined"});
|
|
957
|
+
} else {
|
|
958
|
+
if ((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(value) === "bigint")) {
|
|
959
|
+
return ({"$eliscriptObservation": "bigint", "decimal": globalThis.String(value)});
|
|
960
|
+
} else {
|
|
961
|
+
if (__eliscript_truthy(((__eliscript_value_112) => (__eliscript_truthy(__eliscript_value_112) ? Object.is(value, -0.0) : __eliscript_value_112))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(value) === "number")))) {
|
|
962
|
+
return ({"$eliscriptObservation": "-0"});
|
|
963
|
+
} else {
|
|
964
|
+
if (((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(value) === "number") && (!__eliscript_truthy(Number.isFinite(value))))) {
|
|
965
|
+
return ({"$eliscriptObservation": globalThis.String(value)});
|
|
966
|
+
} else {
|
|
967
|
+
if (__eliscript_truthy(Array.isArray(value))) {
|
|
968
|
+
return (value)["map"](intrinsic_observation);
|
|
969
|
+
} else {
|
|
970
|
+
if (((!(value === null)) && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(value) === "object"))) {
|
|
971
|
+
return Object.fromEntries((Object.entries(value))["map"](((entry) => {
|
|
972
|
+
return [(entry)[0], intrinsic_observation((entry)[1])];
|
|
973
|
+
})));
|
|
974
|
+
} else {
|
|
975
|
+
return value;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
function intrinsic_call(name, arguments$, expected) {
|
|
984
|
+
return ({"name": name, "javascriptName": (name)["replaceAll"]("-", "_"), "args": intrinsic_observation(arguments$), "expected": intrinsic_observation(expected)});
|
|
985
|
+
}
|
|
986
|
+
async function addOriginalManagedLanguageIntrinsics(options) {
|
|
987
|
+
return (await (async (fixture) => {
|
|
988
|
+
return (__eliscript_truthy(((options)["stableFiles"])["has"](fixture)) ? (await (async (input) => {
|
|
989
|
+
return (await (async (suite) => {
|
|
990
|
+
return (await (async (suite_source) => {
|
|
991
|
+
return (await (async (suite_proof) => {
|
|
992
|
+
return ((maintained_proof) => {
|
|
993
|
+
return ((rows) => {
|
|
994
|
+
return ((calls) => {
|
|
995
|
+
return ((owner) => {
|
|
996
|
+
return (() => {
|
|
997
|
+
([null, undefined, false, true, -0.0, globalThis.NaN, globalThis.Infinity, ""])["forEach"](((value) => {
|
|
998
|
+
return (calls)["push"](intrinsic_call("qualified-nullish", [value], (value == null)));
|
|
999
|
+
}));
|
|
1000
|
+
(calls)["push"](intrinsic_call("choose", [], "none"), intrinsic_call("choose", [-0.0], -0.0), intrinsic_call("conversion-throw", [], null), intrinsic_call("conversion-reentry", [], globalThis.BigInt(42)), intrinsic_call("qualified-undefined", [], [undefined, undefined]), intrinsic_call("qualified-numbers", [], [globalThis.NaN, globalThis.NaN, globalThis.Infinity, globalThis.Infinity]), intrinsic_call("qualified-shadow", [owner], [-0.0, -0.0, 17, 17, 23, 23]), intrinsic_call("qualified-capture", [owner], -0.0), intrinsic_call("qualified-getters", [], [-0.0, -0.0, 17, 17, 23, 23, 2]), intrinsic_call("qualified-number-shadow", [], [31, 32, 33]));
|
|
1001
|
+
{
|
|
1002
|
+
let entry = "language-intrinsics.mjs";
|
|
1003
|
+
let request = ({"operation": "project", "resolveImports": true, "phased": true, "sourceMap": true, "entry": entry, "entries": [entry], "modules": [({"id": entry, "filename": fixture, "source": (input)["source"]})]});
|
|
1004
|
+
let artifact = ({"kind": "exports", "auto": 1, "calls": calls, "valueEncoding": "eliscript-observation-v1"});
|
|
1005
|
+
return (options)["add"](({"id": "original-sequence:managed-language-intrinsics-source", "kind": "sequence", "coverage": [(String("stable-compatibility:") + String(fixture))], "original": ({"fixture": fixture, "suite": suite, "sourceSha256": ((input)["proof"])["sourceSha256"], "sourceAssets": [(input)["proof"], suite_proof, maintained_proof], "semanticCoverage": "source-fixture-public-operations", "unclaimedAssertions": "raw ABI, forged IR, native linkage and exceptional host frames remain in the complete original suite"}), "expected": ({"kind": "sequence"}), "steps": [({"id": "first", "request": request, "artifact": artifact}), ({"id": "repeat", "request": globalThis.structuredClone(request), "artifact": globalThis.structuredClone(artifact), "sameProductAs": "first"})]}));
|
|
1006
|
+
}
|
|
1007
|
+
})();
|
|
1008
|
+
})(({"undefined": -0.0, "NaN": 17, "Infinity": 23}));
|
|
1009
|
+
})((rows)["map"](((row) => {
|
|
1010
|
+
return intrinsic_call("parse-bigint", [(row)[0]], (row)[1]);
|
|
1011
|
+
})));
|
|
1012
|
+
})([["0", globalThis.BigInt(0)], ["-0", globalThis.BigInt(0)], [" 42 ", globalThis.BigInt(42)], ["0xFF", globalThis.BigInt(255)], ["0o17", globalThis.BigInt(15)], ["0b101", globalThis.BigInt(5)], ["9007199254740993123456789", globalThis.BigInt("9007199254740993123456789")], ["", globalThis.BigInt(0)], ["bad", null], ["1.2", null], ["1e3", null], ["1N", null], ["0x", null], [null, null], [undefined, null], [false, globalThis.BigInt(0)], [true, globalThis.BigInt(1)], [42, globalThis.BigInt(42)], [-42, globalThis.BigInt(-42)], [-0.0, globalThis.BigInt(0)], [1.5, null], [globalThis.NaN, null], [globalThis.Infinity, null], [globalThis.BigInt("9223372036854775808"), globalThis.BigInt("9223372036854775808")]]);
|
|
1013
|
+
})((await (browser_source_asset(options, suite_source)))["proof"]);
|
|
1014
|
+
})((await (browser_source_asset(options, suite)))["proof"]));
|
|
1015
|
+
})("tests/eliscript/wasm-managed-language-intrinsics.eli"));
|
|
1016
|
+
})("tests/wasm-managed-language-intrinsics.test.mjs"));
|
|
1017
|
+
})(await (browser_source_asset(options, fixture)))) : null);
|
|
1018
|
+
})("tests/fixtures/wasm-managed-language-intrinsics.eli"));
|
|
1019
|
+
}
|
|
1020
|
+
async function project_entry_adapters(options) {
|
|
1021
|
+
return (((options == null) || ((__eliscript_value_113, __eliscript_value_114) => (__eliscript_value_113 !== __eliscript_value_114))(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((options)["add"]), "function") || ((__eliscript_value_115, __eliscript_value_116) => (__eliscript_value_115 !== __eliscript_value_116))(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((options)["text"]), "function") || ((__eliscript_value_117, __eliscript_value_118) => (__eliscript_value_117 !== __eliscript_value_118))(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((options)["file"]), "function") || ((options)["stableFiles"] == null) || (!__eliscript_truthy(((options)["stableFiles"])["has"]((__eliscript_tdz_read_3())))) || (!__eliscript_truthy(((options)["stableFiles"])["has"]((__eliscript_tdz_read_4()))))) ? await ((legacy)["addOriginalManagedFixtureAdapters"](options)) : (await (async (source) => {
|
|
1022
|
+
return (await (async (identity) => {
|
|
1023
|
+
return (await (async () => {
|
|
1024
|
+
if ((!((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(source) === "string") && (hash(source) === (identity)["sha256"]) && ((Buffer)["byteLength"](source) === (identity)["bytes"])))) {
|
|
1025
|
+
((__eliscript_value_119) => { throw __eliscript_value_119; })(new (globalThis.TypeError)("original project-entry host text differs from its source asset"));
|
|
1026
|
+
}
|
|
1027
|
+
return (await (async (javascript) => {
|
|
1028
|
+
return (await (async (dependency) => {
|
|
1029
|
+
return (await (async (bridge_assets) => {
|
|
1030
|
+
return (await (async (index) => {
|
|
1031
|
+
return (await (async (direct_migration) => {
|
|
1032
|
+
return (await (async (add) => {
|
|
1033
|
+
return (await (async (forwarded) => {
|
|
1034
|
+
return (await (async () => {
|
|
1035
|
+
(await (async () => {
|
|
1036
|
+
while (__eliscript_numeric_relation("<", index, (((__eliscript_tdz_read_6())) ?? []).length)) {
|
|
1037
|
+
(await (async (filename) => {
|
|
1038
|
+
return ((asset) => {
|
|
1039
|
+
return (bridge_assets)["push"](({"file": filename, "sourceSha256": (asset)["sha256"]}));
|
|
1040
|
+
})(await ((options)["file"](filename)));
|
|
1041
|
+
})(((__eliscript_tdz_read_6()))[index]));
|
|
1042
|
+
((index = (index + 1)));
|
|
1043
|
+
}
|
|
1044
|
+
return null;
|
|
1045
|
+
})());
|
|
1046
|
+
((forwarded)["add"] = ((record) => {
|
|
1047
|
+
{
|
|
1048
|
+
const __eliscript_value_120 = project_entry_record(record, javascript, identity, bridge_assets, direct_migration);
|
|
1049
|
+
{
|
|
1050
|
+
let selected = __eliscript_value_120;
|
|
1051
|
+
return add((__eliscript_truthy((["original-managed-fixture:project-entry:node", "original-managed-fixture:project-entry:bun"])["includes"]((record)["id"])) ? bindOriginalProcessHostDependency(selected, dependency) : selected));
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}));
|
|
1055
|
+
return await ((legacy)["addOriginalManagedFixtureAdapters"](forwarded));
|
|
1056
|
+
})());
|
|
1057
|
+
})(Object.assign(({}), options)));
|
|
1058
|
+
})((options)["add"]));
|
|
1059
|
+
})(await (direct_wasm_source_migration(options))));
|
|
1060
|
+
})(0));
|
|
1061
|
+
})([]));
|
|
1062
|
+
})(await (readOriginalProcessHostDependency(options))));
|
|
1063
|
+
})(compile_string(source, (__eliscript_tdz_read_5()))));
|
|
1064
|
+
})());
|
|
1065
|
+
})(await ((options)["file"]((__eliscript_tdz_read_5())))));
|
|
1066
|
+
})(await ((options)["text"]((__eliscript_tdz_read_5()))))));
|
|
1067
|
+
}
|
|
1068
|
+
const raw_basic_families = ["arrays", "objects", "array-callbacks", "array-search", "array-construction", "variadic-calls", "source-collections"];
|
|
1069
|
+
__eliscript_tdz_ready_9 = true;
|
|
1070
|
+
const raw_special_families = ["symbols", "regexp", "module-bindings", "persistent-vector-auto-1", "persistent-vector-auto-65536", "object-properties"];
|
|
1071
|
+
__eliscript_tdz_ready_10 = true;
|
|
1072
|
+
const raw_language_families = ["empty-bindings", "exceptions", "catch-destructuring", "builtins", "typeof", "array-text", "strings", "callables", "primitive-operators", "js-cons", "json"];
|
|
1073
|
+
__eliscript_tdz_ready_11 = true;
|
|
1074
|
+
function raw_fixture_file(family) {
|
|
1075
|
+
return (String("tests/fixtures/wasm-managed-") + String((__eliscript_truthy((family)["startsWith"]("persistent-vector-auto-")) ? "persistent-vector" : family)) + String(".eli"));
|
|
1076
|
+
}
|
|
1077
|
+
function raw_fixture_javascript_host(old, family, helper_url) {
|
|
1078
|
+
if ((!__eliscript_truthy((["catch-destructuring", "typeof", "js-cons", "object-properties", "array-construction", "primitive-operators", "objects"])["includes"](family)))) {
|
|
1079
|
+
return old;
|
|
1080
|
+
} else {
|
|
1081
|
+
{
|
|
1082
|
+
let declaration = "function compare(label,observe){";
|
|
1083
|
+
let receipt = "console.log(JSON.stringify({observations}));";
|
|
1084
|
+
let start = (old)["indexOf"](declaration);
|
|
1085
|
+
let finish = (old)["indexOf"](receipt);
|
|
1086
|
+
let configuration = ({"family": family, "originalHostSha256": hash(old)});
|
|
1087
|
+
if ((!(__eliscript_numeric_relation(">=", start, 0) && __eliscript_numeric_relation(">=", finish, 0) && ((old)["indexOf"](declaration, (start + 1)) === -1) && ((old)["indexOf"](receipt, (finish + 1)) === -1)))) {
|
|
1088
|
+
((__eliscript_value_121) => { throw __eliscript_value_121; })(new (globalThis.TypeError)("original fixture compare/finish boundary changed"));
|
|
1089
|
+
}
|
|
1090
|
+
{
|
|
1091
|
+
let prefix = compile_string((String("(import ") + String(JSON.stringify(helper_url)) + String(" finishOriginalFixtureObservation)\n") + String("(defconst originalFixtureGroups (Object/create nil))\n") + String("(defun compare (label observe) (funcall (js* \"originalFixtureCompare\") label observe)") + String(" (put originalFixtureGroups label (1+ (or (get originalFixtureGroups label) 0))))\n") + String("(defun originalFixtureReceipt () (finishOriginalFixtureObservation (JSON/parse ") + String(JSON.stringify(JSON.stringify(configuration))) + String(") (js* \"observations\") originalFixtureGroups))")), "original-fixture-observation-counter.eli");
|
|
1092
|
+
let report = compile_string("(funcall (js* \"originalFixtureReceipt\"))", "original-fixture-receipt.eli");
|
|
1093
|
+
return (String(prefix) + String("\n") + String(((old)["replace"](declaration, "function originalFixtureCompare(label,observe){"))["replace"](receipt, report)));
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
async function fixture_observation_options(options) {
|
|
1099
|
+
return (((options == null) || ((options)["stableFiles"] == null) || ((__eliscript_value_122, __eliscript_value_123) => (__eliscript_value_122 !== __eliscript_value_123))(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((options)["add"]), "function")) ? options : (await (async (families) => {
|
|
1100
|
+
return (await (async (selected) => {
|
|
1101
|
+
return ((((selected) ?? []).length === 0) ? options : (await (async (assets) => {
|
|
1102
|
+
return (await (async (keys) => {
|
|
1103
|
+
return (await (async (suite_proofs) => {
|
|
1104
|
+
return (await (async (files) => {
|
|
1105
|
+
return (await (async (helper) => {
|
|
1106
|
+
return (await (async (index) => {
|
|
1107
|
+
return (await (async (add) => {
|
|
1108
|
+
return (await (async () => {
|
|
1109
|
+
(__eliscript_truthy((selected)["includes"]("function-properties")) ? (await (async (suite) => {
|
|
1110
|
+
return (await (async (fixture_source) => {
|
|
1111
|
+
return (await (async (source) => {
|
|
1112
|
+
return (await (async (symbols) => {
|
|
1113
|
+
return (await (async (names) => {
|
|
1114
|
+
return (await (async () => {
|
|
1115
|
+
if ((!__eliscript_truthy(((__eliscript_value_124) => (__eliscript_truthy(__eliscript_value_124) ? ((__eliscript_value_125) => (__eliscript_truthy(__eliscript_value_125) ? ((__eliscript_value_126) => (__eliscript_truthy(__eliscript_value_126) ? ((__eliscript_value_127) => (__eliscript_truthy(__eliscript_value_127) ? (source)["includes"]("spawnSync('node'") : __eliscript_value_127))((source)["includes"]("mode===3?standardErrorShape:oracle.builtins[mode].shape")) : __eliscript_value_126))((source)["includes"]("const standardErrorShape=JSON.stringify([[],standardErrorOwnNames,[],true,['function','',0,false,true]]);")) : __eliscript_value_125))((source)["includes"]("const standardErrorOwnNames=['length','name','prototype'];")) : __eliscript_value_124))(symbols)))) {
|
|
1116
|
+
((__eliscript_value_128) => { throw __eliscript_value_128; })(new (globalThis.TypeError)("function properties requires its complete original Node oracle and standard Error contract"));
|
|
1117
|
+
}
|
|
1118
|
+
((keys = (names)["concat"](JSON.parse((String("[") + String(((symbols)[1])["replaceAll"]("'", "\"")) + String("]"))))));
|
|
1119
|
+
return ((asset) => {
|
|
1120
|
+
if ((!((asset)["source"] === source))) {
|
|
1121
|
+
((__eliscript_value_129) => { throw __eliscript_value_129; })(new (globalThis.TypeError)("original function properties source changed during authentication"));
|
|
1122
|
+
}
|
|
1123
|
+
return (assets)["push"]((asset)["proof"]);
|
|
1124
|
+
})(await (browser_source_asset(options, suite)));
|
|
1125
|
+
})());
|
|
1126
|
+
})(["isFinite", "missing", "name", "length", "prototype", "caller", "arguments", "call", "apply", "bind", "constructor", "toString", "__proto__", "parseInt", "parseFloat", "fromCharCode", "fromCodePoint", "raw"]));
|
|
1127
|
+
})((new (globalThis.RegExp)("const wellKnownSymbolNames=\\[([^\\]]*)\\];"))["exec"](source)));
|
|
1128
|
+
})(await ((options)["text"](suite))));
|
|
1129
|
+
})(await ((options)["text"](raw_fixture_file("function-properties")))));
|
|
1130
|
+
})("tests/wasm-managed-function-properties.test.mjs")) : null);
|
|
1131
|
+
if (__eliscript_truthy((selected)["some"](((family) => {
|
|
1132
|
+
return ((__eliscript_value_130, __eliscript_value_131) => (__eliscript_value_130 !== __eliscript_value_131))(family, "function-properties");
|
|
1133
|
+
})))) {
|
|
1134
|
+
(files)["push"]("tools/backends/eliscript/compiler-corpus-raw-fixture-observer.eli", "tools/backends/compiler-corpus-raw-fixture-observer.mjs", "tools/backends/eliscript/compiler-corpus-raw-language-fixtures.eli", "tools/backends/compiler-corpus-raw-language-fixtures.mjs", "tools/backends/eliscript/compiler-corpus-raw-special-fixtures.eli", "tools/backends/compiler-corpus-raw-special-fixtures.mjs", "tools/backends/eliscript/compiler-corpus-raw-math-fixture.eli", "tools/backends/compiler-corpus-raw-math-fixture.mjs");
|
|
1135
|
+
}
|
|
1136
|
+
(await (async (suite_index) => {
|
|
1137
|
+
return (await (async () => {
|
|
1138
|
+
while (__eliscript_numeric_relation("<", suite_index, ((selected) ?? []).length)) {
|
|
1139
|
+
(await (async (family) => {
|
|
1140
|
+
return (await (async (suite) => {
|
|
1141
|
+
return ((asset) => {
|
|
1142
|
+
return (() => {
|
|
1143
|
+
(suite_proofs)["set"](family, (asset)["proof"]);
|
|
1144
|
+
return (assets)["push"]((asset)["proof"]);
|
|
1145
|
+
})();
|
|
1146
|
+
})(await (browser_source_asset(options, suite)));
|
|
1147
|
+
})((__eliscript_truthy((family)["startsWith"]("persistent-vector-auto-")) ? "tests/managed-persistent-vector.test.mjs" : (String("tests/wasm-managed-") + String(family) + String(".test.mjs")))));
|
|
1148
|
+
})((selected)[suite_index]));
|
|
1149
|
+
((suite_index = (suite_index + 1)));
|
|
1150
|
+
}
|
|
1151
|
+
return null;
|
|
1152
|
+
})());
|
|
1153
|
+
})(0));
|
|
1154
|
+
(await (async () => {
|
|
1155
|
+
while (__eliscript_numeric_relation("<", index, ((files) ?? []).length)) {
|
|
1156
|
+
((asset) => {
|
|
1157
|
+
return (assets)["push"]((asset)["proof"]);
|
|
1158
|
+
})(await (browser_source_asset(options, (files)[index])));
|
|
1159
|
+
((index = (index + 1)));
|
|
1160
|
+
}
|
|
1161
|
+
return null;
|
|
1162
|
+
})());
|
|
1163
|
+
return Object.assign(({}), options, ({"add": ((record) => {
|
|
1164
|
+
{
|
|
1165
|
+
let match = (new (globalThis.RegExp)("^original-managed-fixture:([^:]+):(node|bun)$"))["exec"]((record)["id"]);
|
|
1166
|
+
let family = ((__eliscript_value_132) => (__eliscript_truthy(__eliscript_value_132) ? (match)[1] : __eliscript_value_132))(match);
|
|
1167
|
+
if ((!__eliscript_truthy(((__eliscript_value_133) => (__eliscript_truthy(__eliscript_value_133) ? (selected)["includes"](family) : __eliscript_value_133))(family)))) {
|
|
1168
|
+
return add(record);
|
|
1169
|
+
} else {
|
|
1170
|
+
{
|
|
1171
|
+
let execution = (record)["execution"];
|
|
1172
|
+
let original = (record)["original"];
|
|
1173
|
+
let old = (execution)["hostSource"];
|
|
1174
|
+
let proofs = (((original)["sourceAssets"] ?? []))["slice"]();
|
|
1175
|
+
let properties = (family === "function-properties");
|
|
1176
|
+
let kind = ((family === "math") ? "math-fixture" : (__eliscript_truthy(((__eliscript_tdz_read_9()))["includes"](family)) ? "fixture-observer" : (__eliscript_truthy(((__eliscript_tdz_read_10()))["includes"](family)) ? "special-fixtures" : "language-fixtures")));
|
|
1177
|
+
let raw_export = ((family === "math") ? "runOriginalRawMathFixtureHost" : (__eliscript_truthy(((__eliscript_tdz_read_9()))["includes"](family)) ? "runOriginalRawFixtureHost" : (__eliscript_truthy(((__eliscript_tdz_read_10()))["includes"](family)) ? "runOriginalRawSpecialFixtureHost" : "runOriginalRawLanguageFixtureHost")));
|
|
1178
|
+
let suite_proof = (suite_proofs)["get"](family);
|
|
1179
|
+
let raw_config = ({"family": family, "helper": (String("tools/backends/compiler-corpus-raw-") + String(kind) + String(".mjs")), "export": raw_export, "auto": ((record)["auto"] ?? 1), "suite": (suite_proof)["file"], "sourceSha256": (suite_proof)["sourceSha256"], "originalHostSha256": hash(old)});
|
|
1180
|
+
let entry = (__eliscript_truthy(properties) ? "runOriginalFunctionPropertiesHost" : "runOriginalRawFixtureMain");
|
|
1181
|
+
let forms = (String("(import ") + String(JSON.stringify(helper)) + String(" ") + String(entry) + String(")\n") + String(originalManagedProgramCompletionSource((String("(await (") + String(entry) + String(" ") + String((__eliscript_truthy(properties) ? (String("(JSON/parse ") + String(JSON.stringify(JSON.stringify(keys))) + String(")")) : (String("(JSON/parse ") + String(JSON.stringify(JSON.stringify(raw_config))) + String(")")))) + String("))")))));
|
|
1182
|
+
if ((!((original)["fixture"] === raw_fixture_file(family)))) {
|
|
1183
|
+
((__eliscript_value_134) => { throw __eliscript_value_134; })(new (globalThis.TypeError)("original fixture observer source identity mismatch"));
|
|
1184
|
+
}
|
|
1185
|
+
(assets)["forEach"](((asset) => {
|
|
1186
|
+
{
|
|
1187
|
+
const __eliscript_value_135 = (proofs)["find"](((item) => {
|
|
1188
|
+
return ((item)["file"] === (asset)["file"]);
|
|
1189
|
+
}));
|
|
1190
|
+
{
|
|
1191
|
+
let prior = __eliscript_value_135;
|
|
1192
|
+
if (__eliscript_truthy(((__eliscript_value_136) => (__eliscript_truthy(__eliscript_value_136) ? ((__eliscript_value_137, __eliscript_value_138) => (__eliscript_value_137 !== __eliscript_value_138))((prior)["sourceSha256"], (asset)["sourceSha256"]) : __eliscript_value_136))(prior))) {
|
|
1193
|
+
((__eliscript_value_139) => { throw __eliscript_value_139; })(new (globalThis.TypeError)("original fixture observer source evidence conflict"));
|
|
1194
|
+
}
|
|
1195
|
+
if ((!__eliscript_truthy(prior))) {
|
|
1196
|
+
return (proofs)["push"](asset);
|
|
1197
|
+
} else {
|
|
1198
|
+
return null;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
}));
|
|
1203
|
+
return add(Object.assign(({}), record, ({"execution": Object.assign(({}), execution, ({"hostSource": compile_string(forms, "original-fixture-observer.eli"), "javascriptHostSource": (__eliscript_truthy(properties) ? compile_string(forms, "original-fixture-observer.eli") : raw_fixture_javascript_host(old, family, (pathToFileURL(resolve((options)["sourceRoot"], "tools/backends/compiler-corpus-raw-language-fixtures.mjs")))["href"]))})), "original": Object.assign(({}), original, ({"sourceAssets": proofs, "observationTransport": ({"version": 1, "family": family, "originalHostSource": old, "originalHostSha256": hash(old), "binaryObservation": (__eliscript_truthy(properties) ? "original-node-oracle-standard-error" : "original-raw-suite")})}))})));
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
})}));
|
|
1208
|
+
})());
|
|
1209
|
+
})((options)["add"]));
|
|
1210
|
+
})(0));
|
|
1211
|
+
})((pathToFileURL(resolve((options)["sourceRoot"], "tools/backends/compiler-corpus-project-entry-host.mjs")))["href"]));
|
|
1212
|
+
})(((__eliscript_tdz_read_6()))["concat"]([(__eliscript_tdz_read_5()), "tools/backends/compiler-corpus-project-entry-host.mjs", "tools/backends/eliscript/compiler-corpus-managed-adapters.eli", "tools/backends/compiler-corpus-managed-adapters.mjs", "tools/backends/eliscript/compiler-corpus-process.eli", "tools/backends/compiler-corpus-process.mjs"])));
|
|
1213
|
+
})(new (globalThis.Map)()));
|
|
1214
|
+
})([]));
|
|
1215
|
+
})([])));
|
|
1216
|
+
})((families)["filter"](((family) => {
|
|
1217
|
+
return ((options)["stableFiles"])["has"](raw_fixture_file(family));
|
|
1218
|
+
}))));
|
|
1219
|
+
})((["function-properties", "math"])["concat"]((__eliscript_tdz_read_9()), (__eliscript_tdz_read_10()), (__eliscript_tdz_read_11())))));
|
|
1220
|
+
}
|
|
1221
|
+
async function addOriginalManagedFixtureAdapters(options) {
|
|
1222
|
+
((options = await (fixture_observation_options(options))));
|
|
1223
|
+
return (((options == null) || ((__eliscript_value_140, __eliscript_value_141) => (__eliscript_value_140 !== __eliscript_value_141))(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((options)["add"]), "function") || ((__eliscript_value_142, __eliscript_value_143) => (__eliscript_value_142 !== __eliscript_value_143))(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((options)["text"]), "function") || ((__eliscript_value_144, __eliscript_value_145) => (__eliscript_value_144 !== __eliscript_value_145))(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((options)["file"]), "function") || ((options)["stableFiles"] == null)) ? await (project_entry_adapters(options)) : (await (async (add) => {
|
|
1224
|
+
return (await (async (pending) => {
|
|
1225
|
+
return (await (async (forwarded) => {
|
|
1226
|
+
return (await (async () => {
|
|
1227
|
+
(__eliscript_truthy((["tests/fixtures/managed-splice-rejected.eli", "tests/fixtures/managed-splice-species.eli", "tests/fixtures/managed-splice-accessor.eli", "tests/fixtures/managed-splice-observe.eli"])["some"](((filename) => {
|
|
1228
|
+
return ((options)["stableFiles"])["has"](filename);
|
|
1229
|
+
}))) ? (await (async (suite) => {
|
|
1230
|
+
return ((source) => {
|
|
1231
|
+
return ((proof) => {
|
|
1232
|
+
return ((cases) => {
|
|
1233
|
+
return ((selection) => {
|
|
1234
|
+
return (() => {
|
|
1235
|
+
if ((!(((proof)["sourceSha256"] === "166cfd99b0de0e64a2abb15bf1578372203ea73348be8ab317e5acf78550c8af") && (((cases) ?? []).length === 11)))) {
|
|
1236
|
+
((__eliscript_value_146) => { throw __eliscript_value_146; })(new (globalThis.TypeError)("maintained splice inputs require the complete unchanged original suite"));
|
|
1237
|
+
}
|
|
1238
|
+
(selection)["push"](Object.assign(({}), proof, ({"kind": "maintained-fixture-execution-selection"})));
|
|
1239
|
+
return ((forwarded)["locators"] = selection);
|
|
1240
|
+
})();
|
|
1241
|
+
})(((options)["locators"])["slice"]());
|
|
1242
|
+
})(originalSourceCaseLocators(suite, (source)["source"]));
|
|
1243
|
+
})((source)["proof"]);
|
|
1244
|
+
})(await (browser_source_asset(options, suite)));
|
|
1245
|
+
})("tests/wasm-managed-array-splice.test.mjs")) : null);
|
|
1246
|
+
(__eliscript_truthy(((options)["stableFiles"])["has"]("tests/fixtures/wasm-managed-js-cons-fast.eli")) ? ((source) => {
|
|
1247
|
+
return ((selection) => {
|
|
1248
|
+
return (() => {
|
|
1249
|
+
(selection)["push"](Object.assign(({}), (source)["proof"], ({"kind": "maintained-fixture-execution-selection"})));
|
|
1250
|
+
return ((forwarded)["locators"] = selection);
|
|
1251
|
+
})();
|
|
1252
|
+
})(((forwarded)["locators"])["slice"]());
|
|
1253
|
+
})(await (browser_source_asset(options, "tests/wasm-managed-js-cons-fast.test.mjs"))) : null);
|
|
1254
|
+
(__eliscript_truthy(((options)["stableFiles"])["has"]("tests/fixtures/persistent-vector-copy.eli")) ? ((source) => {
|
|
1255
|
+
return ((selection) => {
|
|
1256
|
+
return (() => {
|
|
1257
|
+
(selection)["push"](Object.assign(({}), (source)["proof"], ({"kind": "maintained-fixture-execution-selection"})));
|
|
1258
|
+
return ((forwarded)["locators"] = selection);
|
|
1259
|
+
})();
|
|
1260
|
+
})(((forwarded)["locators"])["slice"]());
|
|
1261
|
+
})(await (browser_source_asset(options, "tests/wasm-managed-vector-copy.test.mjs"))) : null);
|
|
1262
|
+
(__eliscript_truthy(((options)["stableFiles"])["has"]("tests/fixtures/wasm-managed-type-construction.eli")) ? ((source) => {
|
|
1263
|
+
return ((selection) => {
|
|
1264
|
+
return (() => {
|
|
1265
|
+
(selection)["push"](Object.assign(({}), (source)["proof"], ({"kind": "maintained-fixture-execution-selection"})));
|
|
1266
|
+
return ((forwarded)["locators"] = selection);
|
|
1267
|
+
})();
|
|
1268
|
+
})(((forwarded)["locators"])["slice"]());
|
|
1269
|
+
})(await (browser_source_asset(options, "tests/wasm-managed-type-construction.test.mjs"))) : null);
|
|
1270
|
+
return (await (async (result) => {
|
|
1271
|
+
await (addOriginalManagedLanguageIntrinsics(options));
|
|
1272
|
+
(__eliscript_truthy(pending) ? add(await (final_fixture_record(await (static_data_fixture_record(browser_suite_record(pending, await (readOriginalManagedSuiteMigrations(options)), options), options)), options))) : null);
|
|
1273
|
+
return result;
|
|
1274
|
+
})(await (project_entry_adapters(forwarded))));
|
|
1275
|
+
})());
|
|
1276
|
+
})(Object.assign(({}), options, ({"add": ((record) => {
|
|
1277
|
+
if (((record)["id"] === "original-managed-suite:complete-fixture-suites")) {
|
|
1278
|
+
return ((pending = record));
|
|
1279
|
+
} else {
|
|
1280
|
+
return add(record);
|
|
1281
|
+
}
|
|
1282
|
+
})}))));
|
|
1283
|
+
})(undefined));
|
|
1284
|
+
})((options)["add"])));
|
|
1285
|
+
}
|
|
1286
|
+
export {addOriginalManagedFixtureAdapters, addOriginalManagedLanguageIntrinsics, readOriginalManagedStaticTemplate, buildBackends, bindOriginalManagedSourceEvidence, readOriginalManagedSuiteMigrations, readOriginalManagedBrowserCases, readOriginalStaticDataFixtureMigration, readOriginalFinalFixtureMigrations, readOriginalManagedFixtureRepairs};
|
|
1287
|
+
//# sourceMappingURL=compiler-corpus-managed-fixtures.mjs.map
|