eliscript 0.1.3 → 0.1.4
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/COPYING.RUNTIME +93 -0
- package/README.md +15 -3
- package/bin/eliscript-test +29 -0
- package/bootstrap/backends/README.md +5 -4
- package/bootstrap/backends/binary.eli +89 -22
- package/bootstrap/backends/capabilities.eli +9 -4
- package/bootstrap/backends/managed-layout.eli +93 -81
- package/bootstrap/backends/managed.eli +651 -125
- package/bootstrap/backends/native.eli +1791 -324
- package/bootstrap/backends/numeric.eli +71 -7
- package/bootstrap/backends/sha256.eli +165 -68
- package/bootstrap/backends/wasm.eli +461 -52
- package/bootstrap/compiler/analyzer.eli +692 -2
- package/bootstrap/compiler/compiler.eli +16 -3
- package/bootstrap/compiler/emitter.eli +80 -35
- package/bootstrap/compiler/project.eli +175 -1
- package/bootstrap/compiler/transient-analysis.eli +2 -2
- package/bootstrap/host/build.eli +1 -0
- package/bootstrap/host/build.mjs +1 -1
- package/bootstrap/host/build.mjs.map +1 -1
- package/bootstrap/host/bun.mjs +7 -9
- package/bootstrap/host/bun.mjs.map +1 -1
- package/bootstrap/host/check-cli-ground.eli +47 -5
- package/bootstrap/host/check-cli-ground.mjs +60 -19
- package/bootstrap/host/check-cli-ground.mjs.map +1 -1
- package/bootstrap/host/check-cli.mjs +41 -1
- package/bootstrap/host/check-cli.mjs.map +1 -1
- package/bootstrap/host/compiler-session.eli +136 -22
- package/bootstrap/host/eliscript-cli.mjs +1 -1
- package/bootstrap/host/eliscript-cli.mjs.map +1 -1
- package/bootstrap/host/evaluation-cli.eli +33 -1
- package/bootstrap/host/evaluation-cli.mjs +65 -28
- package/bootstrap/host/evaluation-cli.mjs.map +1 -1
- package/bootstrap/host/evaluation.eli +651 -42
- package/bootstrap/host/evaluation.mjs +884 -72
- package/bootstrap/host/evaluation.mjs.map +1 -1
- package/bootstrap/host/project-cli-ground.eli +6 -1
- package/bootstrap/host/project-cli-ground.mjs +33 -32
- package/bootstrap/host/project-cli-ground.mjs.map +1 -1
- package/bootstrap/host/project-cli.mjs +1 -1
- package/bootstrap/host/project-cli.mjs.map +1 -1
- package/bootstrap/host/project-ground.eli +266 -45
- package/bootstrap/host/project-ground.mjs +429 -159
- package/bootstrap/host/project-ground.mjs.map +1 -1
- package/bootstrap/host/project.mjs +30 -40
- package/bootstrap/host/project.mjs.map +1 -1
- package/bootstrap/host/test-cli.eli +379 -0
- package/bootstrap/host/test-cli.mjs +494 -0
- package/bootstrap/host/test-cli.mjs.map +1 -0
- package/browser/README.md +7 -0
- package/browser/host.mjs +21 -29
- package/browser/host.mjs.map +1 -1
- package/browser/worker.mjs +7 -9
- package/browser/worker.mjs.map +1 -1
- package/compiler/eliscript-analyzer.el +694 -0
- package/compiler/eliscript-cli.el +66 -22
- package/compiler/eliscript-emitter.el +67 -43
- package/compiler/eliscript-ir-emitter.el +71 -36
- package/compiler/eliscript-project.el +360 -80
- package/compiler/eliscript-transient-analysis.el +5 -5
- package/compiler/eliscript.el +6 -0
- package/dist/backends/binary.mjs +148 -26
- package/dist/backends/binary.mjs.map +1 -1
- package/dist/backends/capabilities.mjs +11 -4
- package/dist/backends/capabilities.mjs.map +1 -1
- package/dist/backends/elf.mjs +4 -4
- package/dist/backends/elf.mjs.map +1 -1
- package/dist/backends/managed-layout.mjs +53 -56
- package/dist/backends/managed-layout.mjs.map +1 -1
- package/dist/backends/managed.mjs +1116 -375
- package/dist/backends/managed.mjs.map +1 -1
- package/dist/backends/memory.mjs +24 -26
- package/dist/backends/memory.mjs.map +1 -1
- package/dist/backends/native.mjs +2529 -434
- package/dist/backends/native.mjs.map +1 -1
- package/dist/backends/numeric.mjs +140 -33
- package/dist/backends/numeric.mjs.map +1 -1
- package/dist/backends/optimize.mjs +2 -2
- package/dist/backends/optimize.mjs.map +1 -1
- package/dist/backends/regexp.mjs +33 -35
- package/dist/backends/regexp.mjs.map +1 -1
- package/dist/backends/sha256.mjs +159 -59
- package/dist/backends/sha256.mjs.map +1 -1
- package/dist/backends/wasm.mjs +609 -73
- package/dist/backends/wasm.mjs.map +1 -1
- package/dist/bootstrap/analyzer.mjs +1018 -2
- package/dist/bootstrap/analyzer.mjs.map +1 -1
- package/dist/bootstrap/compiler.mjs +30 -23
- package/dist/bootstrap/compiler.mjs.map +1 -1
- package/dist/bootstrap/emitter.mjs +206 -161
- package/dist/bootstrap/emitter.mjs.macro-origins.json +16 -16
- package/dist/bootstrap/emitter.mjs.map +1 -1
- package/dist/bootstrap/expander.mjs +27 -31
- package/dist/bootstrap/expander.mjs.map +1 -1
- package/dist/bootstrap/ir.mjs +22 -24
- package/dist/bootstrap/ir.mjs.map +1 -1
- package/dist/bootstrap/project.mjs +246 -1
- package/dist/bootstrap/project.mjs.map +1 -1
- package/dist/bootstrap/reader.mjs +2 -2
- package/dist/bootstrap/reader.mjs.map +1 -1
- package/dist/bootstrap/source-map.mjs +34 -48
- package/dist/bootstrap/source-map.mjs.map +1 -1
- package/dist/bootstrap/transient-analysis.mjs +2 -2
- package/dist/bootstrap/transient-analysis.mjs.map +1 -1
- package/dist/browser/compiler.js +106 -106
- package/dist/browser/host.mjs +21 -29
- package/dist/browser/loader.js +1 -1
- package/dist/browser/worker.mjs +95 -95
- package/dist/compiler-artifact.json +1 -1
- package/dist/host/compiler-session.mjs +405 -228
- package/dist/host/compiler-session.mjs.map +1 -1
- package/dist/host/compiler-tools.mjs +44 -46
- package/dist/host/compiler-tools.mjs.map +1 -1
- package/dist/literal-sources/runtime/core/array-map.eli +45 -0
- package/dist/literal-sources/runtime/core/collection-internals.eli +22 -2
- package/dist/literal-sources/runtime/core/collection.eli +282 -23
- package/dist/literal-sources/runtime/core/data-text.eli +196 -13
- package/dist/literal-sources/runtime/core/data.eli +1 -1
- package/dist/literal-sources/runtime/core/identifier.eli +1 -1
- package/dist/literal-sources/runtime/core/lazy-sequence.eli +822 -44
- package/dist/literal-sources/runtime/core/list.eli +1 -1
- package/dist/literal-sources/runtime/core/map.eli +1 -1
- package/dist/literal-sources/runtime/core/metadata-internals.eli +2 -2
- package/dist/literal-sources/runtime/core/metadata.eli +2 -2
- package/dist/literal-sources/{stdlib/core/object.eli → runtime/core/object-impl.eli} +6 -6
- package/dist/literal-sources/runtime/core/object.eli +1 -1
- package/dist/literal-sources/runtime/core/order.eli +3 -3
- package/dist/literal-sources/runtime/core/persistent-kind.eli +1 -1
- package/dist/literal-sources/{stdlib/core/protocol.eli → runtime/core/protocol-impl.eli} +2 -2
- package/dist/literal-sources/runtime/core/protocol.eli +5 -3
- package/dist/literal-sources/runtime/core/queue.eli +1 -1
- package/dist/literal-sources/runtime/core/record.eli +3 -3
- package/dist/literal-sources/runtime/core/regex.eli +2 -2
- package/dist/literal-sources/runtime/core/sequence.eli +1 -1
- package/dist/literal-sources/runtime/core/set-algebra.eli +1 -1
- package/dist/literal-sources/runtime/core/set.eli +1 -1
- package/dist/literal-sources/runtime/core/sorted.eli +4 -4
- package/dist/literal-sources/{stdlib/core/text.eli → runtime/core/text-impl.eli} +2 -2
- package/dist/literal-sources/runtime/core/text.eli +1 -1
- package/dist/literal-sources/runtime/core/transducer.eli +24 -2
- package/dist/literal-sources/runtime/core/transient.eli +7 -5
- package/dist/literal-sources/runtime/core/type.eli +1 -1
- package/dist/literal-sources/runtime/core/value-internals.eli +3 -3
- package/dist/literal-sources/runtime/core/value.eli +2 -2
- package/dist/literal-sources/runtime/core/vector.eli +5 -2
- package/dist/literal-sources/{stdlib → runtime/managed}/managed-literal-protocols.eli +100 -34
- package/dist/literal-sources/{stdlib → runtime/managed}/managed-literals.eli +406 -81
- package/{stdlib → dist/literal-sources/runtime/managed}/managed-queue-state.eli +1 -1
- package/{stdlib → dist/literal-sources/runtime/managed}/managed-sorted-state.eli +1 -1
- package/dist/literal-sources/runtime/managed/managed-transient-state.eli +1206 -0
- package/{stdlib → dist/literal-sources/runtime/managed}/managed-value-state.eli +30 -6
- package/dist/literal-sources/{stdlib → runtime/managed}/managed-vector-view-state.eli +1 -1
- package/dist/literal-sources/runtime/wire/http-rpc.eli +1 -1
- package/dist/literal-sources/runtime/wire/markdown.eli +1 -1
- package/dist/literal-sources/runtime/wire/schema.eli +1 -1
- package/dist/literal-sources/stdlib/bit.eli +89 -1
- package/dist/literal-sources/stdlib/data.eli +522 -0
- package/dist/literal-sources/stdlib/interop/object.eli +39 -0
- package/dist/literal-sources/stdlib/persistent-list.eli +60 -21
- package/dist/literal-sources/stdlib/persistent-map.eli +335 -324
- package/dist/literal-sources/stdlib/persistent-set.eli +8 -6
- package/dist/literal-sources/stdlib/persistent-vector.eli +18 -18
- package/dist/literal-sources/stdlib/protocol.eli +63 -0
- package/{stdlib/core → dist/literal-sources/stdlib}/set.eli +8 -8
- package/dist/literal-sources/stdlib/string.eli +362 -0
- package/dist/runtime/lisp/async-runtime.mjs +55 -59
- package/dist/runtime/lisp/async-runtime.mjs.map +1 -1
- package/dist/runtime/lisp/builtins.mjs +232 -280
- package/dist/runtime/lisp/builtins.mjs.map +1 -1
- package/dist/runtime/lisp/cli.mjs +159 -167
- package/dist/runtime/lisp/cli.mjs.map +1 -1
- package/dist/runtime/lisp/compiler.mjs +359 -419
- package/dist/runtime/lisp/compiler.mjs.map +1 -1
- package/dist/runtime/lisp/core.mjs +24 -24
- package/dist/runtime/lisp/core.mjs.map +1 -1
- package/dist/runtime/lisp/evaluator.mjs +315 -385
- package/dist/runtime/lisp/evaluator.mjs.map +1 -1
- package/dist/runtime/lisp/extensions.mjs +85 -103
- package/dist/runtime/lisp/extensions.mjs.map +1 -1
- package/dist/runtime/lisp/host-io.mjs +106 -122
- package/dist/runtime/lisp/host-io.mjs.map +1 -1
- package/dist/runtime/lisp/io-worker.mjs +117 -135
- package/dist/runtime/lisp/io-worker.mjs.map +1 -1
- package/dist/runtime/lisp/keymap.mjs +5 -5
- package/dist/runtime/lisp/keymap.mjs.map +1 -1
- package/dist/runtime/lisp/macros-forms.mjs +49 -51
- package/dist/runtime/lisp/macros-forms.mjs.map +1 -1
- package/dist/runtime/lisp/reader-format.mjs +31 -31
- package/dist/runtime/lisp/reader-format.mjs.map +1 -1
- package/dist/runtime/lisp/regexp-buffer.mjs +9 -9
- package/dist/runtime/lisp/regexp-buffer.mjs.map +1 -1
- package/dist/runtime/math.mjs +32 -38
- package/dist/runtime/math.mjs.map +1 -1
- package/dist/runtime/number-radix.mjs +5 -7
- package/dist/runtime/number-radix.mjs.map +1 -1
- package/dist/runtime/primitives.mjs +81 -46
- package/dist/runtime/primitives.mjs.macro-origins.json +294 -44
- package/dist/runtime/primitives.mjs.map +1 -1
- package/dist/runtime/unicode-case.mjs +6 -6
- package/dist/runtime/unicode-case.mjs.map +1 -1
- package/dist/runtime.eli +3068 -1882
- package/dist/stage3-release.json +1 -1
- package/dist/stdlib/async.mjs +1838 -0
- package/dist/stdlib/bit.mjs +116 -0
- package/dist/stdlib/collection.mjs +193 -0
- package/dist/stdlib/core.mjs +28 -0
- package/dist/stdlib/data-text.mjs +54 -0
- package/dist/stdlib/data.mjs +601 -0
- package/dist/stdlib/devtools.mjs +565 -0
- package/dist/stdlib/diff.mjs +180 -0
- package/dist/stdlib/fn.mjs +164 -0
- package/dist/stdlib/hierarchy.mjs +189 -0
- package/dist/stdlib/identifier.mjs +33 -0
- package/dist/stdlib/interop/js.mjs +706 -0
- package/dist/stdlib/interop/object.mjs +40 -0
- package/dist/stdlib/json.mjs +843 -0
- package/dist/stdlib/lazy-sequence.mjs +117 -0
- package/dist/stdlib/math.mjs +386 -0
- package/dist/stdlib/meta.mjs +21 -0
- package/dist/stdlib/multimethod.mjs +345 -0
- package/dist/stdlib/numeric.mjs +327 -0
- package/dist/stdlib/order.mjs +194 -0
- package/dist/stdlib/persistent-list.mjs +171 -0
- package/dist/stdlib/persistent-map.mjs +781 -0
- package/dist/stdlib/persistent-queue.mjs +44 -0
- package/dist/stdlib/persistent-set.mjs +225 -0
- package/dist/stdlib/persistent-vector.mjs +316 -0
- package/dist/stdlib/portable/data-text.mjs +1094 -0
- package/dist/stdlib/portable/data.mjs +62 -0
- package/dist/stdlib/portable/identifier.mjs +179 -0
- package/dist/stdlib/portable/metadata.mjs +63 -0
- package/dist/stdlib/portable/object.mjs +140 -0
- package/dist/stdlib/portable/sequence.mjs +142 -0
- package/dist/stdlib/portable/text.mjs +111 -0
- package/dist/stdlib/pprint.mjs +807 -0
- package/dist/stdlib/protocol.mjs +61 -0
- package/dist/stdlib/record.mjs +25 -0
- package/dist/stdlib/regex.mjs +115 -0
- package/dist/stdlib/result.mjs +198 -0
- package/dist/stdlib/schema.mjs +2828 -0
- package/dist/stdlib/seq.mjs +913 -0
- package/dist/stdlib/set.mjs +317 -0
- package/dist/stdlib/sorted.mjs +56 -0
- package/dist/stdlib/state.mjs +451 -0
- package/dist/stdlib/string.mjs +494 -0
- package/dist/stdlib/tap.mjs +187 -0
- package/dist/stdlib/test.mjs +669 -0
- package/dist/stdlib/time.mjs +522 -0
- package/dist/stdlib/transducer.mjs +85 -0
- package/dist/stdlib/transient.mjs +32 -0
- package/dist/stdlib/type.mjs +28 -0
- package/dist/stdlib/uuid.mjs +377 -0
- package/dist/stdlib/value.mjs +334 -0
- package/dist/stdlib/walk.mjs +243 -0
- package/dist/stdlib/wire/gepo.mjs +28 -0
- package/dist/stdlib/wire/mdp.mjs +13 -0
- package/dist/stdlib/wire/mds.mjs +10 -0
- package/dist/stdlib/zipper.mjs +1025 -0
- package/editor/README.md +15 -0
- package/editor/eliscript-data.el +221 -8
- package/editor/eliscript-mode.el +207 -48
- package/editor/eliscript-runtime.el +6 -3
- package/package.json +49 -15
- package/platform/README.md +6 -0
- package/platform/browser.mjs +10 -12
- package/platform/browser.mjs.map +1 -1
- package/runtime/README.md +12 -5
- package/runtime/core/array-map.eli +538 -0
- package/runtime/core/array-map.mjs +651 -0
- package/runtime/core/array-map.mjs.map +1 -0
- package/runtime/core/collection-internals.eli +85 -33
- package/runtime/core/collection-internals.mjs +245 -193
- package/runtime/core/collection-internals.mjs.map +1 -1
- package/runtime/core/collection.eli +105 -3
- package/runtime/core/collection.mjs +190 -53
- package/runtime/core/collection.mjs.map +1 -1
- package/runtime/core/data-text.eli +224 -16
- package/runtime/core/data-text.mjs +345 -83
- package/runtime/core/data-text.mjs.map +1 -1
- package/runtime/core/data.eli +50 -33
- package/runtime/core/data.mjs +72 -36
- package/runtime/core/data.mjs.map +1 -1
- package/runtime/core/identifier.mjs +15 -19
- package/runtime/core/identifier.mjs.map +1 -1
- package/runtime/core/lazy-sequence.eli +885 -15
- package/runtime/core/lazy-sequence.mjs +1265 -38
- package/runtime/core/lazy-sequence.mjs.map +1 -1
- package/runtime/core/map-internals.eli +209 -1
- package/runtime/core/map-internals.mjs +359 -71
- package/runtime/core/map-internals.mjs.map +1 -1
- package/runtime/core/map.eli +75 -7
- package/runtime/core/map.mjs +122 -47
- package/runtime/core/map.mjs.map +1 -1
- package/{stdlib/core/object.eli → runtime/core/object-impl.eli} +6 -6
- package/runtime/core/object-impl.mjs +5 -5
- package/runtime/core/object-impl.mjs.map +1 -1
- package/runtime/core/order.eli +15 -3
- package/runtime/core/order.mjs +23 -8
- package/runtime/core/order.mjs.map +1 -1
- package/runtime/core/persistent-kind.mjs +9 -13
- package/runtime/core/persistent-kind.mjs.map +1 -1
- package/runtime/core/protocol-error.mjs +9 -11
- package/runtime/core/protocol-error.mjs.map +1 -1
- package/{stdlib/core/protocol.eli → runtime/core/protocol-impl.eli} +2 -2
- package/runtime/core/protocol-impl.mjs +10 -10
- package/runtime/core/protocol-impl.mjs.map +1 -1
- package/runtime/core/queue.mjs +14 -16
- package/runtime/core/queue.mjs.map +1 -1
- package/runtime/core/record.eli +2 -2
- package/runtime/core/record.mjs +13 -17
- package/runtime/core/record.mjs.map +1 -1
- package/runtime/core/regex.mjs +18 -22
- package/runtime/core/regex.mjs.map +1 -1
- package/runtime/core/sequence.eli +33 -31
- package/runtime/core/sequence.mjs +60 -93
- package/runtime/core/sequence.mjs.map +1 -1
- package/runtime/core/set.eli +53 -27
- package/runtime/core/set.mjs +113 -82
- package/runtime/core/set.mjs.map +1 -1
- package/runtime/core/sorted.mjs +91 -108
- package/runtime/core/sorted.mjs.map +1 -1
- package/{stdlib/core/text.eli → runtime/core/text-impl.eli} +2 -2
- package/runtime/core/text-impl.mjs +1 -1
- package/runtime/core/text-impl.mjs.map +1 -1
- package/runtime/core/transducer.eli +24 -0
- package/runtime/core/transducer.mjs +27 -1
- package/runtime/core/transducer.mjs.map +1 -1
- package/runtime/core/transient-internals.eli +12 -4
- package/runtime/core/transient-internals.mjs +19 -6
- package/runtime/core/transient-internals.mjs.map +1 -1
- package/runtime/core/transient.eli +31 -0
- package/runtime/core/transient.mjs +33 -2
- package/runtime/core/transient.mjs.map +1 -1
- package/runtime/core/value-internals.mjs +29 -35
- package/runtime/core/value-internals.mjs.map +1 -1
- package/runtime/core/vector.eli +73 -20
- package/runtime/core/vector.mjs +159 -156
- package/runtime/core/vector.mjs.map +1 -1
- package/runtime/literals.eli +16 -9
- package/runtime/literals.mjs +25 -9
- package/runtime/literals.mjs.map +1 -1
- package/{stdlib → runtime/managed}/managed-literal-protocols.eli +100 -34
- package/{stdlib → runtime/managed}/managed-literals.eli +406 -81
- package/{dist/literal-sources/stdlib → runtime/managed}/managed-queue-state.eli +1 -1
- package/runtime/managed/managed-runtime-array-map.eli +45 -0
- package/{stdlib → runtime/managed}/managed-runtime-collection-internals.eli +22 -2
- package/{stdlib → runtime/managed}/managed-runtime-collection.eli +282 -23
- package/{stdlib → runtime/managed}/managed-runtime-data-text.eli +196 -13
- package/{stdlib → runtime/managed}/managed-runtime-data.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-identifier.eli +1 -1
- package/runtime/managed/managed-runtime-lazy-sequence.eli +935 -0
- package/{stdlib → runtime/managed}/managed-runtime-list.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-map.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-metadata-internals.eli +2 -2
- package/{stdlib → runtime/managed}/managed-runtime-metadata.eli +2 -2
- package/{stdlib → runtime/managed}/managed-runtime-object.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-order.eli +3 -3
- package/{stdlib → runtime/managed}/managed-runtime-persistent-kind.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-protocol.eli +5 -3
- package/{stdlib → runtime/managed}/managed-runtime-queue.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-record.eli +3 -3
- package/{stdlib → runtime/managed}/managed-runtime-regex.eli +2 -2
- package/{stdlib → runtime/managed}/managed-runtime-sequence.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-set-algebra.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-set.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-sorted.eli +4 -4
- package/{stdlib → runtime/managed}/managed-runtime-text.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-transducer.eli +24 -2
- package/{stdlib → runtime/managed}/managed-runtime-transient.eli +7 -5
- package/{stdlib → runtime/managed}/managed-runtime-type.eli +1 -1
- package/{stdlib → runtime/managed}/managed-runtime-value-internals.eli +3 -3
- package/{stdlib → runtime/managed}/managed-runtime-value.eli +2 -2
- package/{stdlib → runtime/managed}/managed-runtime-vector.eli +5 -2
- package/{dist/literal-sources/stdlib → runtime/managed}/managed-sorted-state.eli +1 -1
- package/runtime/managed/managed-transient-state.eli +1206 -0
- package/{dist/literal-sources/stdlib → runtime/managed}/managed-value-state.eli +30 -6
- package/{stdlib → runtime/managed}/managed-vector-view-state.eli +1 -1
- package/{stdlib → runtime/managed}/managed-wire-http-rpc.eli +1 -1
- package/{stdlib → runtime/managed}/managed-wire-markdown.eli +1 -1
- package/{stdlib → runtime/managed}/managed-wire-schema.eli +1 -1
- package/runtime/math.mjs +32 -38
- package/runtime/math.mjs.map +1 -1
- package/runtime/number-radix.mjs +5 -7
- package/runtime/number-radix.mjs.map +1 -1
- package/runtime/primitives.eli +19 -6
- package/runtime/primitives.mjs +81 -46
- package/runtime/primitives.mjs.map +1 -1
- package/runtime/source-mapping.mjs +17 -23
- package/runtime/source-mapping.mjs.map +1 -1
- package/runtime/testing/map.eli +70 -41
- package/runtime/testing/map.mjs +57 -34
- package/runtime/testing/map.mjs.map +1 -1
- package/runtime/unicode-case.mjs +6 -6
- package/runtime/unicode-case.mjs.map +1 -1
- package/runtime/wire/http-rpc.mjs +12 -18
- package/runtime/wire/http-rpc.mjs.map +1 -1
- package/runtime/wire/markdown.mjs +42 -42
- package/runtime/wire/markdown.mjs.map +1 -1
- package/runtime/wire/schema.mjs +13 -13
- package/runtime/wire/schema.mjs.map +1 -1
- package/runtime/worker-value-codec.mjs +5 -7
- package/runtime/worker-value-codec.mjs.map +1 -1
- package/runtime/worker-value-stream.mjs +128 -135
- package/runtime/worker-value-stream.mjs.map +1 -1
- package/runtime/worker.mjs +75 -89
- package/runtime/worker.mjs.map +1 -1
- package/stdlib/README.md +25 -18
- package/stdlib/async.eli +1245 -0
- package/stdlib/bit.eli +89 -1
- package/stdlib/bit.mjs +89 -2
- package/stdlib/bit.mjs.map +1 -1
- package/stdlib/{core/collection.eli → collection.eli} +39 -4
- package/stdlib/core.eli +956 -0
- package/stdlib/data-text.eli +62 -1091
- package/stdlib/data.eli +517 -37
- package/stdlib/devtools.eli +399 -0
- package/stdlib/diff.eli +134 -0
- package/stdlib/{function.eli → fn.eli} +1 -1
- package/stdlib/identifier.eli +21 -136
- package/stdlib/interop/object.eli +39 -0
- package/stdlib/{core/lazy-sequence.eli → lazy-sequence.eli} +28 -2
- package/stdlib/math.eli +267 -0
- package/stdlib/{core/metadata.eli → meta.eli} +2 -2
- package/stdlib/{core/order.eli → order.eli} +6 -6
- package/stdlib/persistent-list.eli +60 -21
- package/stdlib/persistent-map.eli +335 -324
- package/stdlib/persistent-set.eli +8 -6
- package/stdlib/persistent-vector.eli +18 -18
- package/stdlib/portable/data-text.eli +1092 -0
- package/stdlib/portable/data.eli +42 -0
- package/stdlib/portable/identifier.eli +147 -0
- package/stdlib/{metadata.eli → portable/metadata.eli} +5 -5
- package/stdlib/{object.eli → portable/object.eli} +1 -1
- package/stdlib/{sequence.eli → portable/sequence.eli} +1 -1
- package/stdlib/{text.eli → portable/text.eli} +1 -1
- package/stdlib/pprint.eli +588 -0
- package/stdlib/protocol.eli +63 -0
- package/stdlib/{core/record.eli → record.eli} +2 -2
- package/stdlib/regex.eli +70 -0
- package/stdlib/result.eli +53 -44
- package/stdlib/schema.eli +1886 -0
- package/stdlib/{core/seq.eli → seq.eli} +97 -90
- package/{dist/literal-sources/stdlib/core → stdlib}/set.eli +8 -8
- package/stdlib/{core/sorted.eli → sorted.eli} +2 -2
- package/stdlib/{state/atom.eli → state.eli} +137 -7
- package/stdlib/string.eli +362 -0
- package/stdlib/tap.eli +135 -0
- package/stdlib/test.eli +566 -0
- package/stdlib/time.eli +419 -0
- package/stdlib/{core/transducer.eli → transducer.eli} +4 -2
- package/stdlib/{core/transient.eli → transient.eli} +11 -5
- package/stdlib/{core/type.eli → type.eli} +2 -2
- package/stdlib/uuid.eli +288 -0
- package/stdlib/{core/walk.eli → walk.eli} +6 -6
- package/stdlib/{gepo.eli → wire/gepo.eli} +2 -2
- package/stdlib/{mdp.eli → wire/mdp.eli} +2 -2
- package/stdlib/{mds.eli → wire/mds.eli} +2 -2
- package/stdlib/{core/zipper.eli → zipper.eli} +179 -138
- package/tests/helpers/wasm-managed-math-node.mjs +495 -582
- package/tools/acceptance/check-ground.mjs +106 -132
- package/tools/acceptance/check.mjs +16 -16
- package/tools/acceptance/retained-performance-snapshot.mjs +265 -149
- package/tools/acceptance/retained-soak.mjs +5 -7
- package/tools/acceptance/retained-transient.mjs +5 -7
- package/tools/backends/build.mjs +373 -95
- package/tools/backends/compiler-bootstrap.mjs +271 -317
- package/tools/backends/compiler-browser.mjs +7 -9
- package/tools/backends/compiler-build.mjs +77 -97
- package/tools/backends/compiler-cli-ground.mjs +47 -47
- package/tools/backends/compiler-data-transport.mjs +27 -31
- package/tools/backends/compiler-host-iteration.mjs +13 -21
- package/tools/backends/compiler-host-record.mjs +28 -34
- package/tools/backends/compiler-metadata.mjs +145 -53
- package/tools/backends/compiler-package-ground.mjs +39 -47
- package/tools/backends/compiler-package-loader.mjs +164 -206
- package/tools/backends/compiler-session.mjs +432 -324
- package/tools/backends/compiler-worker.mjs +79 -89
- package/tools/backends/dist/bootstrap-js-stages.mjs +17 -19
- package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -1
- package/tools/backends/dist/managed-ir-inventory.mjs +1 -1
- package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -1
- package/tools/backends/dist/release-cli.mjs +151 -22
- package/tools/backends/dist/release-cli.mjs.map +1 -1
- package/tools/backends/dist/run-artifact.mjs +54 -76
- package/tools/backends/dist/run-artifact.mjs.map +1 -1
- package/tools/backends/managed-foreign-binding.mjs +370 -114
- package/tools/backends/managed-host-ground.mjs +14 -17
- package/tools/backends/managed-host-lifecycle.mjs +42 -53
- package/tools/backends/managed-host-object-realm.mjs +121 -111
- package/tools/backends/managed-host-proxy.mjs +5 -7
- package/tools/backends/managed-host-runtime.mjs +6295 -4350
- package/tools/backends/managed-host.mjs +234 -188
- package/tools/backends/managed-layout.mjs +53 -56
- package/tools/backends/managed-module-graph-ground.mjs +488 -568
- package/tools/backends/managed-module-graph.mjs +62 -76
- package/tools/backends/managed-runtime-host-ground.mjs +352 -400
- package/tools/backends/managed-runtime.mjs +227 -266
- package/tools/backends/managed-source-view-ground.mjs +165 -161
- package/tools/backends/managed-source-view.mjs +415 -154
- package/tools/backends/native-managed-runtime.mjs +96 -138
- package/tools/backends/native-memory.mjs +1122 -742
- package/tools/backends/native-node-ffi.mjs +2439 -0
- package/tools/backends/native-node-memory.mjs +793 -383
- package/tools/backends/native-node-runner.mjs +1458 -579
- package/tools/backends/native-node-watchdog.mjs +12 -14
- package/tools/backends/native-node-worker.mjs +46 -50
- package/tools/backends/stage3-targets.mjs +2 -2
- package/tools/bootstrap-runtime.el +4 -4
- package/tools/collections/transient-builder-benchmark.mjs +17 -17
- package/tools/project/check-cli.eli +27 -3
- package/tools/project/project-cli.eli +1 -1
- package/tools/testing/maintained-suite-source.mjs +5 -7
- package/tools/testing/maintained-suite-source.mjs.map +1 -1
- package/dist/literal-sources/stdlib/core/data.eli +0 -306
- package/dist/literal-sources/stdlib/managed-transient-state.eli +0 -353
- package/stdlib/core/data-text.eli +0 -16
- package/stdlib/core/data.eli +0 -306
- package/stdlib/core/identifier.eli +0 -32
- package/stdlib/core/regex.eli +0 -17
- package/stdlib/deferred.eli +0 -70
- package/stdlib/managed-runtime-lazy-sequence.eli +0 -157
- package/stdlib/managed-transient-state.eli +0 -353
- /package/{stdlib → runtime/managed}/managed-protocol-error.eli +0 -0
- /package/{stdlib → runtime/managed}/managed-runtime-literals.eli +0 -0
- /package/{stdlib → runtime/managed}/managed-runtime-truth.eli +0 -0
- /package/{stdlib → runtime/managed}/managed-testing-value.eli +0 -0
|
@@ -112,26 +112,22 @@ async function saveOwnedCompilerMetadata(path, value) {
|
|
|
112
112
|
})((String(path) + String(".") + String(randomUUID()) + String(".tmp")), false, false));
|
|
113
113
|
}
|
|
114
114
|
function failure_property(value, name) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if ((value == null)) {
|
|
118
|
-
return undefined;
|
|
119
|
-
} else {
|
|
120
|
-
return (value)[name];
|
|
121
|
-
}
|
|
122
|
-
} catch (ignored) {
|
|
115
|
+
try {
|
|
116
|
+
if ((value == null)) {
|
|
123
117
|
return undefined;
|
|
118
|
+
} else {
|
|
119
|
+
return (value)[name];
|
|
124
120
|
}
|
|
125
|
-
}
|
|
121
|
+
} catch (ignored) {
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
126
124
|
}
|
|
127
125
|
function failure_text(value, fallback) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
})();
|
|
126
|
+
try {
|
|
127
|
+
return text_of(value);
|
|
128
|
+
} catch (ignored) {
|
|
129
|
+
return fallback;
|
|
130
|
+
}
|
|
135
131
|
}
|
|
136
132
|
function failure_data(value, ancestors) {
|
|
137
133
|
if (((value === null) || (value === undefined) || (host_type(value) === "string") || (host_type(value) === "boolean") || (host_type(value) === "number"))) {
|
|
@@ -149,40 +145,38 @@ function failure_data(value, ancestors) {
|
|
|
149
145
|
{
|
|
150
146
|
let path = new (globalThis.Set)(ancestors);
|
|
151
147
|
(path)["add"](value);
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
((index = (index + 1)));
|
|
161
|
-
}
|
|
162
|
-
return result;
|
|
148
|
+
try {
|
|
149
|
+
if (__eliscript_truthy(Array.isArray(value))) {
|
|
150
|
+
{
|
|
151
|
+
let result = [];
|
|
152
|
+
let index = 0;
|
|
153
|
+
while (__eliscript_numeric_relation("<", index, ((value) ?? []).length)) {
|
|
154
|
+
(result)["push"](failure_data(failure_property(value, index), path));
|
|
155
|
+
((index = (index + 1)));
|
|
163
156
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
157
|
+
return result;
|
|
158
|
+
}
|
|
159
|
+
} else {
|
|
160
|
+
{
|
|
161
|
+
let result = ({});
|
|
162
|
+
let keys = (globalThis.Object)["keys"](value);
|
|
163
|
+
let index = 0;
|
|
164
|
+
while (__eliscript_numeric_relation("<", index, ((keys) ?? []).length)) {
|
|
165
|
+
{
|
|
166
|
+
let key = (keys)[index];
|
|
167
|
+
let item = failure_data(failure_property(value, key), path);
|
|
168
|
+
if (!((item === undefined))) {
|
|
169
|
+
(globalThis.Object)["defineProperty"](result, key, ({"value": item, "enumerable": true, "writable": true, "configurable": true}));
|
|
176
170
|
}
|
|
177
|
-
((index = (index + 1)));
|
|
178
171
|
}
|
|
179
|
-
|
|
172
|
+
((index = (index + 1)));
|
|
180
173
|
}
|
|
174
|
+
return result;
|
|
181
175
|
}
|
|
182
|
-
} catch (ignored) {
|
|
183
|
-
return ({"truncatedCause": true});
|
|
184
176
|
}
|
|
185
|
-
}
|
|
177
|
+
} catch (ignored) {
|
|
178
|
+
return ({"truncatedCause": true});
|
|
179
|
+
}
|
|
186
180
|
}
|
|
187
181
|
}
|
|
188
182
|
}
|
|
@@ -216,17 +210,13 @@ function compilerFailure(error, ...supplied) {
|
|
|
216
210
|
{
|
|
217
211
|
let keep = true;
|
|
218
212
|
if (((key === "eliscriptFrames") || (key === "eliscriptSourceFrames"))) {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
return ((keep = null));
|
|
223
|
-
} else {
|
|
224
|
-
return null;
|
|
225
|
-
}
|
|
226
|
-
} catch (ignored) {
|
|
227
|
-
return ((keep = null));
|
|
213
|
+
try {
|
|
214
|
+
if ((!__eliscript_truthy(Array.isArray(field)))) {
|
|
215
|
+
((keep = null));
|
|
228
216
|
}
|
|
229
|
-
}
|
|
217
|
+
} catch (ignored) {
|
|
218
|
+
((keep = null));
|
|
219
|
+
}
|
|
230
220
|
}
|
|
231
221
|
if (__eliscript_truthy(keep)) {
|
|
232
222
|
{
|
|
@@ -244,31 +234,28 @@ function compilerFailure(error, ...supplied) {
|
|
|
244
234
|
{
|
|
245
235
|
let errors = failure_property(error, "errors");
|
|
246
236
|
if (!((errors === undefined))) {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
if (__eliscript_truthy(
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
((cursor = (cursor + 1)));
|
|
261
|
-
}
|
|
262
|
-
return null;
|
|
237
|
+
try {
|
|
238
|
+
if (__eliscript_truthy(Array.isArray(errors))) {
|
|
239
|
+
if ((__eliscript_truthy((ancestors)["has"](errors)) || __eliscript_numeric_relation(">=", (ancestors)["size"], 64))) {
|
|
240
|
+
((record)["errors"] = ({"truncatedCause": true}));
|
|
241
|
+
} else {
|
|
242
|
+
{
|
|
243
|
+
let path = new (globalThis.Set)(ancestors);
|
|
244
|
+
let cursor = 0;
|
|
245
|
+
(path)["add"](errors);
|
|
246
|
+
((record)["errors"] = []);
|
|
247
|
+
while (__eliscript_numeric_relation("<", cursor, ((errors) ?? []).length)) {
|
|
248
|
+
((record)["errors"])["push"](compilerFailure(failure_property(errors, cursor), path));
|
|
249
|
+
((cursor = (cursor + 1)));
|
|
263
250
|
}
|
|
264
251
|
}
|
|
265
|
-
} else {
|
|
266
|
-
return ((record)["errors"] = failure_data(errors, ancestors));
|
|
267
252
|
}
|
|
268
|
-
}
|
|
269
|
-
|
|
253
|
+
} else {
|
|
254
|
+
((record)["errors"] = failure_data(errors, ancestors));
|
|
270
255
|
}
|
|
271
|
-
}
|
|
256
|
+
} catch (ignored) {
|
|
257
|
+
((record)["errors"] = ({"truncatedCause": true}));
|
|
258
|
+
}
|
|
272
259
|
}
|
|
273
260
|
}
|
|
274
261
|
{
|
|
@@ -720,24 +707,20 @@ async function read_archived_json(directory, path) {
|
|
|
720
707
|
{
|
|
721
708
|
let text = null;
|
|
722
709
|
let decoded = true;
|
|
723
|
-
|
|
710
|
+
try {
|
|
711
|
+
((text = (decoder)["decode"](block, ({"stream": true}))));
|
|
712
|
+
} catch (error) {
|
|
713
|
+
((decode_failed = true));
|
|
714
|
+
((decode_failure = error));
|
|
715
|
+
((decoded = null));
|
|
716
|
+
}
|
|
717
|
+
if ((__eliscript_truthy(decoded) && !(__eliscript_truthy(parse_failed)))) {
|
|
724
718
|
try {
|
|
725
|
-
return (
|
|
719
|
+
return (parser)["write"](text);
|
|
726
720
|
} catch (error) {
|
|
727
|
-
((
|
|
728
|
-
((
|
|
729
|
-
return ((decoded = null));
|
|
721
|
+
((parse_failed = true));
|
|
722
|
+
return ((parse_failure = error));
|
|
730
723
|
}
|
|
731
|
-
})();
|
|
732
|
-
if ((__eliscript_truthy(decoded) && !(__eliscript_truthy(parse_failed)))) {
|
|
733
|
-
return (() => {
|
|
734
|
-
try {
|
|
735
|
-
return (parser)["write"](text);
|
|
736
|
-
} catch (error) {
|
|
737
|
-
((parse_failed = true));
|
|
738
|
-
return ((parse_failure = error));
|
|
739
|
-
}
|
|
740
|
-
})();
|
|
741
724
|
} else {
|
|
742
725
|
return null;
|
|
743
726
|
}
|
|
@@ -1325,8 +1308,8 @@ function artifact_resources(artifact, directory) {
|
|
|
1325
1308
|
{
|
|
1326
1309
|
let bound = binding(path);
|
|
1327
1310
|
let entry = (bound)["entry"];
|
|
1328
|
-
if ((__eliscript_truthy(host_truthy(entry)) && (((
|
|
1329
|
-
((
|
|
1311
|
+
if ((__eliscript_truthy(host_truthy(entry)) && (((bytes)["byteLength"] !== (entry)["bytes"]) || !((compilerDigest(bytes) === (entry)["sha256"]))))) {
|
|
1312
|
+
((__eliscript_value_76) => { throw __eliscript_value_76; })(new (globalThis.Error)((String("compiler resource SHA-256 or byte length identity changed after emission: ") + String((bound)["key"]))));
|
|
1330
1313
|
}
|
|
1331
1314
|
return bytes;
|
|
1332
1315
|
}
|
|
@@ -1341,7 +1324,7 @@ function artifact_resources(artifact, directory) {
|
|
|
1341
1324
|
while (__eliscript_numeric_relation("<", index, ((parts) ?? []).length)) {
|
|
1342
1325
|
((stat) => {
|
|
1343
1326
|
if ((!__eliscript_truthy(((index === __eliscript_numeric_decrement(((parts) ?? []).length)) ? (stat)["isFile"]() : (stat)["isDirectory"]())))) {
|
|
1344
|
-
return ((
|
|
1327
|
+
return ((__eliscript_value_77) => { throw __eliscript_value_77; })(new (globalThis.Error)((String("compiler resource contains an unsupported file entry: ") + String(key))));
|
|
1345
1328
|
} else {
|
|
1346
1329
|
return null;
|
|
1347
1330
|
}
|
|
@@ -1373,7 +1356,7 @@ function artifact_resources(artifact, directory) {
|
|
|
1373
1356
|
while (!(__eliscript_truthy(done))) {
|
|
1374
1357
|
((count) => {
|
|
1375
1358
|
if ((!(__eliscript_truthy(Number.isInteger(count)) && __eliscript_numeric_relation(">=", count, 0) && __eliscript_numeric_relation("<=", count, ((buffer) ?? []).length)))) {
|
|
1376
|
-
((
|
|
1359
|
+
((__eliscript_value_78) => { throw __eliscript_value_78; })(new (globalThis.Error)("compiler resource read returned an invalid byte count"));
|
|
1377
1360
|
}
|
|
1378
1361
|
if ((count === 0)) {
|
|
1379
1362
|
return ((done = true));
|
|
@@ -1390,20 +1373,20 @@ function artifact_resources(artifact, directory) {
|
|
|
1390
1373
|
return null;
|
|
1391
1374
|
})());
|
|
1392
1375
|
})(false));
|
|
1393
|
-
if ((__eliscript_truthy(host_truthy(entry)) && ((
|
|
1394
|
-
((
|
|
1376
|
+
if ((__eliscript_truthy(host_truthy(entry)) && ((bytes !== (entry)["bytes"]) || !(((hash)["digest"]("hex") === (entry)["sha256"]))))) {
|
|
1377
|
+
((__eliscript_value_79) => { throw __eliscript_value_79; })(new (globalThis.Error)((String("compiler resource SHA-256 or byte length identity changed after emission: ") + String(key))));
|
|
1395
1378
|
}
|
|
1396
1379
|
return undefined;
|
|
1397
1380
|
} catch (error) {
|
|
1398
1381
|
((failed = true));
|
|
1399
|
-
return ((
|
|
1382
|
+
return ((__eliscript_value_80) => { throw __eliscript_value_80; })(error);
|
|
1400
1383
|
} finally {
|
|
1401
1384
|
(await (async () => {
|
|
1402
1385
|
try {
|
|
1403
1386
|
return await ((file)["close"]());
|
|
1404
1387
|
} catch (error) {
|
|
1405
1388
|
if ((!__eliscript_truthy(failed))) {
|
|
1406
|
-
return ((
|
|
1389
|
+
return ((__eliscript_value_81) => { throw __eliscript_value_81; })(error);
|
|
1407
1390
|
} else {
|
|
1408
1391
|
return null;
|
|
1409
1392
|
}
|
|
@@ -1446,26 +1429,22 @@ function artifact_resources(artifact, directory) {
|
|
|
1446
1429
|
{
|
|
1447
1430
|
let text = undefined;
|
|
1448
1431
|
let decoded = true;
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
}
|
|
1457
|
-
})();
|
|
1432
|
+
try {
|
|
1433
|
+
((text = (decoder)["decode"](block, ({"stream": true}))));
|
|
1434
|
+
} catch (error) {
|
|
1435
|
+
((decodeFailed = true));
|
|
1436
|
+
((decodeFailure = error));
|
|
1437
|
+
((decoded = false));
|
|
1438
|
+
}
|
|
1458
1439
|
if (__eliscript_truthy(decoded)) {
|
|
1459
1440
|
if (__eliscript_truthy(host_truthy(parser))) {
|
|
1460
1441
|
if ((!__eliscript_truthy(parseFailed))) {
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
}
|
|
1468
|
-
})();
|
|
1442
|
+
try {
|
|
1443
|
+
(parser)["write"](text);
|
|
1444
|
+
} catch (error) {
|
|
1445
|
+
((parseFailed = true));
|
|
1446
|
+
((parseFailure = error));
|
|
1447
|
+
}
|
|
1469
1448
|
}
|
|
1470
1449
|
} else {
|
|
1471
1450
|
(pieces)["push"](text);
|
|
@@ -1477,22 +1456,22 @@ function artifact_resources(artifact, directory) {
|
|
|
1477
1456
|
})));
|
|
1478
1457
|
beforeDecode();
|
|
1479
1458
|
if ((!__eliscript_truthy(supported))) {
|
|
1480
|
-
((
|
|
1459
|
+
((__eliscript_value_82) => { throw __eliscript_value_82; })(new (globalThis.TypeError)("unsupported compiler source asset encoding"));
|
|
1481
1460
|
}
|
|
1482
1461
|
if (__eliscript_truthy(decodeFailed)) {
|
|
1483
|
-
((
|
|
1462
|
+
((__eliscript_value_83) => { throw __eliscript_value_83; })(decodeFailure);
|
|
1484
1463
|
}
|
|
1485
1464
|
{
|
|
1486
1465
|
let tail = (decoder)["decode"]();
|
|
1487
1466
|
if (__eliscript_truthy(host_truthy(parser))) {
|
|
1488
1467
|
if (__eliscript_truthy(parseFailed)) {
|
|
1489
|
-
((
|
|
1468
|
+
((__eliscript_value_84) => { throw __eliscript_value_84; })(parseFailure);
|
|
1490
1469
|
}
|
|
1491
1470
|
(parser)["write"](tail);
|
|
1492
1471
|
{
|
|
1493
1472
|
let source = (parser)["finish"]();
|
|
1494
1473
|
if ((!(host_type(source) === "string"))) {
|
|
1495
|
-
((
|
|
1474
|
+
((__eliscript_value_85) => { throw __eliscript_value_85; })(new (globalThis.TypeError)("encoded compiler source asset must contain a JSON string"));
|
|
1496
1475
|
}
|
|
1497
1476
|
return source;
|
|
1498
1477
|
}
|
|
@@ -1538,14 +1517,12 @@ function artifact_resources(artifact, directory) {
|
|
|
1538
1517
|
(hash)["update"](part);
|
|
1539
1518
|
((bytes = (bytes + count)));
|
|
1540
1519
|
if ((!__eliscript_truthy(decodeFailed))) {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
}
|
|
1548
|
-
})();
|
|
1520
|
+
try {
|
|
1521
|
+
return (parser)["write"]((decoder)["decode"](part, ({"stream": true})));
|
|
1522
|
+
} catch (error) {
|
|
1523
|
+
((decodeFailed = true));
|
|
1524
|
+
return ((decodeFailure = error));
|
|
1525
|
+
}
|
|
1549
1526
|
} else {
|
|
1550
1527
|
return null;
|
|
1551
1528
|
}
|
|
@@ -1555,25 +1532,25 @@ function artifact_resources(artifact, directory) {
|
|
|
1555
1532
|
}
|
|
1556
1533
|
return null;
|
|
1557
1534
|
})());
|
|
1558
|
-
if ((__eliscript_truthy(host_truthy(entry)) && ((
|
|
1559
|
-
((
|
|
1535
|
+
if ((__eliscript_truthy(host_truthy(entry)) && ((bytes !== (entry)["bytes"]) || !(((hash)["digest"]("hex") === (entry)["sha256"]))))) {
|
|
1536
|
+
((__eliscript_value_86) => { throw __eliscript_value_86; })(new (globalThis.Error)((String("compiler resource SHA-256 or byte length identity changed after emission: ") + String(key))));
|
|
1560
1537
|
}
|
|
1561
1538
|
if (__eliscript_truthy(decodeFailed)) {
|
|
1562
|
-
((
|
|
1539
|
+
((__eliscript_value_87) => { throw __eliscript_value_87; })(decodeFailure);
|
|
1563
1540
|
}
|
|
1564
1541
|
(parser)["write"]((decoder)["decode"]());
|
|
1565
1542
|
return (parser)["finish"]();
|
|
1566
1543
|
})(createHash("sha256"), new (globalThis.Uint8Array)(65536), new (globalThis.TextDecoder)("utf-8", ({"fatal": true, "ignoreBOM": true})), createCompilerMetadataDecoder(), 0, false, undefined, false));
|
|
1567
1544
|
} catch (error) {
|
|
1568
1545
|
((failed = true));
|
|
1569
|
-
return ((
|
|
1546
|
+
return ((__eliscript_value_88) => { throw __eliscript_value_88; })(error);
|
|
1570
1547
|
} finally {
|
|
1571
1548
|
(await (async () => {
|
|
1572
1549
|
try {
|
|
1573
1550
|
return await ((file)["close"]());
|
|
1574
1551
|
} catch (error) {
|
|
1575
1552
|
if ((!__eliscript_truthy(failed))) {
|
|
1576
|
-
return ((
|
|
1553
|
+
return ((__eliscript_value_89) => { throw __eliscript_value_89; })(error);
|
|
1577
1554
|
} else {
|
|
1578
1555
|
return null;
|
|
1579
1556
|
}
|
|
@@ -1591,32 +1568,29 @@ function artifact_resources(artifact, directory) {
|
|
|
1591
1568
|
{
|
|
1592
1569
|
let identity = (artifact)["artifactIdentity"];
|
|
1593
1570
|
if ((!((host_get(identity, "algorithm") === "sha256") && __eliscript_truthy(Array.isArray((identity)["files"])) && __eliscript_numeric_relation(">", (((identity)["files"]) ?? []).length, 0)))) {
|
|
1594
|
-
((
|
|
1571
|
+
((__eliscript_value_90) => { throw __eliscript_value_90; })(new (globalThis.TypeError)("compiler artifact requires a nonempty SHA-256 file identity"));
|
|
1595
1572
|
}
|
|
1596
1573
|
{
|
|
1597
1574
|
let __eli_iterator_1 = openHostIterator((identity)["files"]);
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1575
|
+
try {
|
|
1576
|
+
while (__eliscript_truthy(advanceHostIterator(__eli_iterator_1))) {
|
|
1577
|
+
{
|
|
1578
|
+
let entry = (__eli_iterator_1)["value"];
|
|
1601
1579
|
{
|
|
1602
|
-
let
|
|
1603
|
-
{
|
|
1604
|
-
|
|
1605
|
-
if ((!(!(__eliscript_truthy((declarations)["has"](path))) && __eliscript_truthy(Number.isSafeInteger((entry)["bytes"])) && __eliscript_numeric_relation(">=", (entry)["bytes"], 0) && __eliscript_truthy((new (globalThis.RegExp)((__eliscript_tdz_ready_3 === true ? digest_pattern : __eliscript_tdz_error("digest_pattern"))))["test"](null_default((entry)["sha256"], "")))))) {
|
|
1606
|
-
((__eliscript_value_97) => { throw __eliscript_value_97; })(new (globalThis.TypeError)((String("invalid or duplicate compiler resource identity: ") + String(path))));
|
|
1607
|
-
}
|
|
1608
|
-
(declarations)["set"](path, ({"path": path, "bytes": (entry)["bytes"], "sha256": (entry)["sha256"]}));
|
|
1580
|
+
let path = module_id(host_get(entry, "path"));
|
|
1581
|
+
if ((!(!(__eliscript_truthy((declarations)["has"](path))) && __eliscript_truthy(Number.isSafeInteger((entry)["bytes"])) && __eliscript_numeric_relation(">=", (entry)["bytes"], 0) && __eliscript_truthy((new (globalThis.RegExp)((__eliscript_tdz_ready_3 === true ? digest_pattern : __eliscript_tdz_error("digest_pattern"))))["test"](null_default((entry)["sha256"], "")))))) {
|
|
1582
|
+
((__eliscript_value_91) => { throw __eliscript_value_91; })(new (globalThis.TypeError)((String("invalid or duplicate compiler resource identity: ") + String(path))));
|
|
1609
1583
|
}
|
|
1584
|
+
(declarations)["set"](path, ({"path": path, "bytes": (entry)["bytes"], "sha256": (entry)["sha256"]}));
|
|
1610
1585
|
}
|
|
1611
1586
|
}
|
|
1612
|
-
return null;
|
|
1613
|
-
} catch (__eli_iteration_error_2) {
|
|
1614
|
-
closeHostIterator(__eli_iterator_1, true);
|
|
1615
|
-
return ((__eliscript_value_98) => { throw __eliscript_value_98; })(__eli_iteration_error_2);
|
|
1616
|
-
} finally {
|
|
1617
|
-
closeHostIterator(__eli_iterator_1, false);
|
|
1618
1587
|
}
|
|
1619
|
-
}
|
|
1588
|
+
} catch (__eli_iteration_error_2) {
|
|
1589
|
+
closeHostIterator(__eli_iterator_1, true);
|
|
1590
|
+
((__eliscript_value_92) => { throw __eliscript_value_92; })(__eli_iteration_error_2);
|
|
1591
|
+
} finally {
|
|
1592
|
+
closeHostIterator(__eli_iterator_1, false);
|
|
1593
|
+
}
|
|
1620
1594
|
}
|
|
1621
1595
|
}
|
|
1622
1596
|
}
|
|
@@ -1650,84 +1624,75 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1650
1624
|
((host === "javascript") ? (await (async () => {
|
|
1651
1625
|
(__eliscript_truthy((resources)["declared"]) ? (await (async () => {
|
|
1652
1626
|
if ((!(__eliscript_truthy(Array.isArray((artifact)["modules"])) && __eliscript_numeric_relation(">", (((artifact)["modules"]) ?? []).length, 0)))) {
|
|
1653
|
-
((
|
|
1627
|
+
((__eliscript_value_93) => { throw __eliscript_value_93; })(new (globalThis.TypeError)("compiler JavaScript module graph is required"));
|
|
1654
1628
|
}
|
|
1655
1629
|
return (await (async (ids, paths) => {
|
|
1656
1630
|
{
|
|
1657
1631
|
let __eli_iterator_3 = openHostIterator((artifact)["modules"]);
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1632
|
+
try {
|
|
1633
|
+
while (__eliscript_truthy(advanceHostIterator(__eli_iterator_3))) {
|
|
1634
|
+
{
|
|
1635
|
+
let module = (__eli_iterator_3)["value"];
|
|
1661
1636
|
{
|
|
1662
|
-
let
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
if ((__eliscript_truthy((ids)["has"](id)) || __eliscript_truthy((paths)["has"](path)))) {
|
|
1667
|
-
((__eliscript_value_100) => { throw __eliscript_value_100; })(new (globalThis.TypeError)("duplicate compiler JavaScript module"));
|
|
1668
|
-
}
|
|
1669
|
-
(ids)["add"](id);
|
|
1670
|
-
(paths)["add"](path);
|
|
1671
|
-
(resources)["binding"]((module)["path"]);
|
|
1637
|
+
let id = module_id(host_get(module, "id"));
|
|
1638
|
+
let path = (resources)["pathFor"]((module)["path"]);
|
|
1639
|
+
if ((__eliscript_truthy((ids)["has"](id)) || __eliscript_truthy((paths)["has"](path)))) {
|
|
1640
|
+
((__eliscript_value_94) => { throw __eliscript_value_94; })(new (globalThis.TypeError)("duplicate compiler JavaScript module"));
|
|
1672
1641
|
}
|
|
1642
|
+
(ids)["add"](id);
|
|
1643
|
+
(paths)["add"](path);
|
|
1644
|
+
(resources)["binding"]((module)["path"]);
|
|
1673
1645
|
}
|
|
1674
1646
|
}
|
|
1675
|
-
return null;
|
|
1676
|
-
} catch (__eli_iteration_error_4) {
|
|
1677
|
-
closeHostIterator(__eli_iterator_3, true);
|
|
1678
|
-
return ((__eliscript_value_101) => { throw __eliscript_value_101; })(__eli_iteration_error_4);
|
|
1679
|
-
} finally {
|
|
1680
|
-
closeHostIterator(__eli_iterator_3, false);
|
|
1681
1647
|
}
|
|
1682
|
-
}
|
|
1648
|
+
} catch (__eli_iteration_error_4) {
|
|
1649
|
+
closeHostIterator(__eli_iterator_3, true);
|
|
1650
|
+
((__eliscript_value_95) => { throw __eliscript_value_95; })(__eli_iteration_error_4);
|
|
1651
|
+
} finally {
|
|
1652
|
+
closeHostIterator(__eli_iterator_3, false);
|
|
1653
|
+
}
|
|
1683
1654
|
}
|
|
1684
1655
|
if ((!__eliscript_truthy((paths)["has"]((resources)["pathFor"](artifactPath))))) {
|
|
1685
|
-
((
|
|
1656
|
+
((__eliscript_value_96) => { throw __eliscript_value_96; })(new (globalThis.Error)("compiler entry is absent from its JavaScript module graph"));
|
|
1686
1657
|
}
|
|
1687
1658
|
if (__eliscript_truthy(Array.isArray(host_get(sourceIdentity, "modules")))) {
|
|
1688
1659
|
{
|
|
1689
1660
|
let __eli_iterator_5 = openHostIterator((sourceIdentity)["modules"]);
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
((__eliscript_value_103) => { throw __eliscript_value_103; })(new (globalThis.Error)((String("compiler JavaScript module graph omits a source module: ") + String((module)["id"]))));
|
|
1697
|
-
}
|
|
1661
|
+
try {
|
|
1662
|
+
while (__eliscript_truthy(advanceHostIterator(__eli_iterator_5))) {
|
|
1663
|
+
{
|
|
1664
|
+
let module = (__eli_iterator_5)["value"];
|
|
1665
|
+
if ((!__eliscript_truthy((ids)["has"]((module)["id"])))) {
|
|
1666
|
+
((__eliscript_value_97) => { throw __eliscript_value_97; })(new (globalThis.Error)((String("compiler JavaScript module graph omits a source module: ") + String((module)["id"]))));
|
|
1698
1667
|
}
|
|
1699
1668
|
}
|
|
1700
|
-
return null;
|
|
1701
|
-
} catch (__eli_iteration_error_6) {
|
|
1702
|
-
closeHostIterator(__eli_iterator_5, true);
|
|
1703
|
-
return ((__eliscript_value_104) => { throw __eliscript_value_104; })(__eli_iteration_error_6);
|
|
1704
|
-
} finally {
|
|
1705
|
-
closeHostIterator(__eli_iterator_5, false);
|
|
1706
1669
|
}
|
|
1707
|
-
}
|
|
1670
|
+
} catch (__eli_iteration_error_6) {
|
|
1671
|
+
closeHostIterator(__eli_iterator_5, true);
|
|
1672
|
+
((__eliscript_value_98) => { throw __eliscript_value_98; })(__eli_iteration_error_6);
|
|
1673
|
+
} finally {
|
|
1674
|
+
closeHostIterator(__eli_iterator_5, false);
|
|
1675
|
+
}
|
|
1708
1676
|
}
|
|
1709
1677
|
}
|
|
1710
1678
|
return (await (async (executable) => {
|
|
1711
1679
|
{
|
|
1712
1680
|
let __eli_iterator_7 = openHostIterator(((resources)["declarations"])["keys"]());
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
(executable)["add"](path);
|
|
1720
|
-
}
|
|
1681
|
+
try {
|
|
1682
|
+
while (__eliscript_truthy(advanceHostIterator(__eli_iterator_7))) {
|
|
1683
|
+
{
|
|
1684
|
+
let path = (__eli_iterator_7)["value"];
|
|
1685
|
+
if (__eliscript_truthy((new (globalThis.RegExp)((__eliscript_tdz_ready_5 === true ? script_path_pattern : __eliscript_tdz_error("script_path_pattern"))))["test"](path))) {
|
|
1686
|
+
(executable)["add"](path);
|
|
1721
1687
|
}
|
|
1722
1688
|
}
|
|
1723
|
-
return null;
|
|
1724
|
-
} catch (__eli_iteration_error_8) {
|
|
1725
|
-
closeHostIterator(__eli_iterator_7, true);
|
|
1726
|
-
return ((__eliscript_value_105) => { throw __eliscript_value_105; })(__eli_iteration_error_8);
|
|
1727
|
-
} finally {
|
|
1728
|
-
closeHostIterator(__eli_iterator_7, false);
|
|
1729
1689
|
}
|
|
1730
|
-
}
|
|
1690
|
+
} catch (__eli_iteration_error_8) {
|
|
1691
|
+
closeHostIterator(__eli_iterator_7, true);
|
|
1692
|
+
((__eliscript_value_99) => { throw __eliscript_value_99; })(__eli_iteration_error_8);
|
|
1693
|
+
} finally {
|
|
1694
|
+
closeHostIterator(__eli_iterator_7, false);
|
|
1695
|
+
}
|
|
1731
1696
|
}
|
|
1732
1697
|
return (await (async (__eli_iterator_9) => {
|
|
1733
1698
|
return (await (async () => {
|
|
@@ -1742,7 +1707,7 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1742
1707
|
})());
|
|
1743
1708
|
} catch (__eli_iteration_error_10) {
|
|
1744
1709
|
closeHostIterator(__eli_iterator_9, true);
|
|
1745
|
-
return ((
|
|
1710
|
+
return ((__eliscript_value_100) => { throw __eliscript_value_100; })(__eli_iteration_error_10);
|
|
1746
1711
|
} finally {
|
|
1747
1712
|
closeHostIterator(__eli_iterator_9, false);
|
|
1748
1713
|
}
|
|
@@ -1762,7 +1727,7 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1762
1727
|
return (await (async (session, literalSourcesLoading, runtimeSourceLoading, dispatchRuntime) => {
|
|
1763
1728
|
((!(normalizeCompilerHost((session)["host"]) === host)) ? (await (async () => {
|
|
1764
1729
|
await ((session)["close"]());
|
|
1765
|
-
return ((
|
|
1730
|
+
return ((__eliscript_value_101) => { throw __eliscript_value_101; })(new (globalThis.Error)("compiler session changed its requested host"));
|
|
1766
1731
|
})()) : null);
|
|
1767
1732
|
(((host === "javascript") && __eliscript_truthy((resources)["declared"])) ? (await (async () => {
|
|
1768
1733
|
((__eliscript_tdz_ready_1 === true ? verified_sessions : __eliscript_tdz_error("verified_sessions")))["add"](session);
|
|
@@ -1778,7 +1743,7 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1778
1743
|
return undefined;
|
|
1779
1744
|
}
|
|
1780
1745
|
})());
|
|
1781
|
-
return ((
|
|
1746
|
+
return ((__eliscript_value_102) => { throw __eliscript_value_102; })(error);
|
|
1782
1747
|
}
|
|
1783
1748
|
})());
|
|
1784
1749
|
})()) : null);
|
|
@@ -1790,42 +1755,39 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1790
1755
|
if ((!__eliscript_truthy(host_truthy(literalSourcesLoading)))) {
|
|
1791
1756
|
((literalSourcesLoading = (((async () => {
|
|
1792
1757
|
if ((!__eliscript_truthy(Array.isArray(literalAssets)))) {
|
|
1793
|
-
((
|
|
1758
|
+
((__eliscript_value_103) => { throw __eliscript_value_103; })(new (globalThis.TypeError)("compiler literalSources must be an array"));
|
|
1794
1759
|
}
|
|
1795
1760
|
{
|
|
1796
1761
|
let ids = new (globalThis.Set)();
|
|
1797
1762
|
{
|
|
1798
1763
|
let __eli_iterator_11 = openHostIterator(literalAssets);
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1764
|
+
try {
|
|
1765
|
+
while (__eliscript_truthy(advanceHostIterator(__eli_iterator_11))) {
|
|
1766
|
+
{
|
|
1767
|
+
let item = (__eli_iterator_11)["value"];
|
|
1802
1768
|
{
|
|
1803
|
-
let
|
|
1804
|
-
{
|
|
1805
|
-
|
|
1806
|
-
if ((!(!(__eliscript_truthy((ids)["has"](id))) && (host_type((item)["filename"]) === "string") && (host_type((item)["path"]) === "string")))) {
|
|
1807
|
-
((__eliscript_value_110) => { throw __eliscript_value_110; })(new (globalThis.TypeError)("invalid compiler literal source asset"));
|
|
1808
|
-
}
|
|
1809
|
-
(ids)["add"](id);
|
|
1769
|
+
let id = module_id(host_get(item, "id"));
|
|
1770
|
+
if ((!(!(__eliscript_truthy((ids)["has"](id))) && (host_type((item)["filename"]) === "string") && (host_type((item)["path"]) === "string")))) {
|
|
1771
|
+
((__eliscript_value_104) => { throw __eliscript_value_104; })(new (globalThis.TypeError)("invalid compiler literal source asset"));
|
|
1810
1772
|
}
|
|
1773
|
+
(ids)["add"](id);
|
|
1811
1774
|
}
|
|
1812
1775
|
}
|
|
1813
|
-
return null;
|
|
1814
|
-
} catch (__eli_iteration_error_12) {
|
|
1815
|
-
closeHostIterator(__eli_iterator_11, true);
|
|
1816
|
-
return ((__eliscript_value_111) => { throw __eliscript_value_111; })(__eli_iteration_error_12);
|
|
1817
|
-
} finally {
|
|
1818
|
-
closeHostIterator(__eli_iterator_11, false);
|
|
1819
1776
|
}
|
|
1820
|
-
}
|
|
1777
|
+
} catch (__eli_iteration_error_12) {
|
|
1778
|
+
closeHostIterator(__eli_iterator_11, true);
|
|
1779
|
+
((__eliscript_value_105) => { throw __eliscript_value_105; })(__eli_iteration_error_12);
|
|
1780
|
+
} finally {
|
|
1781
|
+
closeHostIterator(__eli_iterator_11, false);
|
|
1782
|
+
}
|
|
1821
1783
|
}
|
|
1822
1784
|
}
|
|
1823
|
-
if ((!((host_get(sourceIdentity, "literalSources") === undefined)) && (!(__eliscript_truthy(Array.isArray((sourceIdentity)["literalSources"]))) || ((
|
|
1824
|
-
((
|
|
1785
|
+
if ((!((host_get(sourceIdentity, "literalSources") === undefined)) && (!(__eliscript_truthy(Array.isArray((sourceIdentity)["literalSources"]))) || ((((sourceIdentity)["literalSources"]) ?? []).length !== ((literalAssets) ?? []).length)))) {
|
|
1786
|
+
((__eliscript_value_106) => { throw __eliscript_value_106; })(new (globalThis.Error)("compiler literal source inventory differs from its source identity"));
|
|
1825
1787
|
}
|
|
1826
1788
|
return Promise.all((literalAssets)["map"]((async (item) => {
|
|
1827
1789
|
if ((!((host_type(host_get(item, "id")) === "string") && (host_type((item)["filename"]) === "string") && (host_type((item)["path"]) === "string")))) {
|
|
1828
|
-
((
|
|
1790
|
+
((__eliscript_value_107) => { throw __eliscript_value_107; })(new (globalThis.TypeError)("invalid compiler literal source asset"));
|
|
1829
1791
|
}
|
|
1830
1792
|
return ((source) => {
|
|
1831
1793
|
literal_source_identity(sourceIdentity, item, source, (resources)["declared"]);
|
|
@@ -1836,7 +1798,7 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1836
1798
|
})));
|
|
1837
1799
|
}))())["catch"](((error) => {
|
|
1838
1800
|
((literalSourcesLoading = undefined));
|
|
1839
|
-
return ((
|
|
1801
|
+
return ((__eliscript_value_108) => { throw __eliscript_value_108; })(error);
|
|
1840
1802
|
}))));
|
|
1841
1803
|
}
|
|
1842
1804
|
return (literalSourcesLoading)["then"](((literalSources) => {
|
|
@@ -1861,7 +1823,7 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1861
1823
|
if ((!__eliscript_truthy(host_truthy(runtimeSourceLoading)))) {
|
|
1862
1824
|
((runtimeSourceLoading = (((async () => {
|
|
1863
1825
|
if ((!(host_type((runtimeAsset)["path"]) === "string"))) {
|
|
1864
|
-
((
|
|
1826
|
+
((__eliscript_value_109) => { throw __eliscript_value_109; })(new (globalThis.TypeError)("compiler artifact has no runtime source asset"));
|
|
1865
1827
|
}
|
|
1866
1828
|
return ((source) => {
|
|
1867
1829
|
runtime_source_identity(sourceIdentity, source, (resources)["declared"]);
|
|
@@ -1871,7 +1833,7 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1871
1833
|
}))));
|
|
1872
1834
|
}))())["catch"](((error) => {
|
|
1873
1835
|
((runtimeSourceLoading = undefined));
|
|
1874
|
-
return ((
|
|
1836
|
+
return ((__eliscript_value_110) => { throw __eliscript_value_110; })(error);
|
|
1875
1837
|
}))));
|
|
1876
1838
|
}
|
|
1877
1839
|
return (runtimeSourceLoading)["then"](((source) => {
|
|
@@ -1908,7 +1870,7 @@ async function openCompilerArtifact(artifact, ...supplied) {
|
|
|
1908
1870
|
}
|
|
1909
1871
|
function abort_bootstrap(signal) {
|
|
1910
1872
|
if (__eliscript_truthy(host_truthy(host_get(signal, "aborted")))) {
|
|
1911
|
-
return ((
|
|
1873
|
+
return ((__eliscript_value_111) => { throw __eliscript_value_111; })((((signal)["reason"] === undefined) ? new (globalThis.Error)("compiler bootstrap aborted") : (signal)["reason"]));
|
|
1912
1874
|
} else {
|
|
1913
1875
|
return null;
|
|
1914
1876
|
}
|
|
@@ -1916,17 +1878,17 @@ function abort_bootstrap(signal) {
|
|
|
1916
1878
|
function host_sequence(options) {
|
|
1917
1879
|
if (!(((options)["hosts"] === undefined))) {
|
|
1918
1880
|
if ((!(__eliscript_truthy(Array.isArray((options)["hosts"])) && __eliscript_numeric_relation(">", (((options)["hosts"]) ?? []).length, 0)))) {
|
|
1919
|
-
((
|
|
1881
|
+
((__eliscript_value_112) => { throw __eliscript_value_112; })(new (globalThis.TypeError)("bootstrap host sequence must be nonempty"));
|
|
1920
1882
|
}
|
|
1921
|
-
if ((!(((options)["generations"] === undefined)) && ((
|
|
1922
|
-
((
|
|
1883
|
+
if ((!(((options)["generations"] === undefined)) && ((options)["generations"] !== (((options)["hosts"]) ?? []).length))) {
|
|
1884
|
+
((__eliscript_value_113) => { throw __eliscript_value_113; })(new (globalThis.TypeError)("generation count differs from host sequence"));
|
|
1923
1885
|
}
|
|
1924
1886
|
return ((options)["hosts"])["map"](normalizeCompilerHost);
|
|
1925
1887
|
} else {
|
|
1926
1888
|
{
|
|
1927
1889
|
let count = null_default((options)["generations"], 3);
|
|
1928
1890
|
if ((!(__eliscript_truthy(Number.isSafeInteger(count)) && __eliscript_numeric_relation(">=", count, 1)))) {
|
|
1929
|
-
((
|
|
1891
|
+
((__eliscript_value_114) => { throw __eliscript_value_114; })(new (globalThis.TypeError)("bootstrap generations must be positive"));
|
|
1930
1892
|
}
|
|
1931
1893
|
return Array.from(({"length": count}), (() => {
|
|
1932
1894
|
return normalizeCompilerHost(null_default((options)["host"], "javascript"));
|
|
@@ -1939,7 +1901,7 @@ async function seed_compiler(options, sources, directory) {
|
|
|
1939
1901
|
return ((mode) => {
|
|
1940
1902
|
return (() => {
|
|
1941
1903
|
if ((!((mode === "seed") || (mode === "session")))) {
|
|
1942
|
-
((
|
|
1904
|
+
((__eliscript_value_115) => { throw __eliscript_value_115; })(new (globalThis.Error)("initial compiler has no recorded producer"));
|
|
1943
1905
|
}
|
|
1944
1906
|
assert_producer(artifact, ((mode === "session") ? ({"host": ((artifact)["provenance"])["producerHost"]}) : null), sources);
|
|
1945
1907
|
return artifact;
|
|
@@ -1953,7 +1915,7 @@ async function seed_compiler(options, sources, directory) {
|
|
|
1953
1915
|
async function bootstrapCompilerChain(...supplied) {
|
|
1954
1916
|
return (await (async (options) => {
|
|
1955
1917
|
if ((!(host_type((options)["outputRoot"]) === "string"))) {
|
|
1956
|
-
((
|
|
1918
|
+
((__eliscript_value_116) => { throw __eliscript_value_116; })(new (globalThis.TypeError)("bootstrap outputRoot is required"));
|
|
1957
1919
|
}
|
|
1958
1920
|
return (await (async (hosts) => {
|
|
1959
1921
|
return (await (async (sources) => {
|
|
@@ -1995,7 +1957,7 @@ async function bootstrapCompilerChain(...supplied) {
|
|
|
1995
1957
|
return (await (async (nextArtifact) => {
|
|
1996
1958
|
assert_producer(nextArtifact, active, sources);
|
|
1997
1959
|
if ((!(normalizeCompilerHost((nextArtifact)["host"]) === target))) {
|
|
1998
|
-
((
|
|
1960
|
+
((__eliscript_value_117) => { throw __eliscript_value_117; })(new (globalThis.Error)("compiler build changed its requested target"));
|
|
1999
1961
|
}
|
|
2000
1962
|
((record)["artifact"] = await (archiveCompilerArtifact(nextArtifact, join(directory, (String("generation-") + String(generation) + String("-metadata"))))));
|
|
2001
1963
|
{
|
|
@@ -2032,7 +1994,7 @@ async function bootstrapCompilerChain(...supplied) {
|
|
|
2032
1994
|
})());
|
|
2033
1995
|
} catch (__eli_iteration_error_14) {
|
|
2034
1996
|
closeHostIterator(__eli_iterator_13, true);
|
|
2035
|
-
return ((
|
|
1997
|
+
return ((__eliscript_value_118) => { throw __eliscript_value_118; })(__eli_iteration_error_14);
|
|
2036
1998
|
} finally {
|
|
2037
1999
|
closeHostIterator(__eli_iterator_13, false);
|
|
2038
2000
|
}
|
|
@@ -2050,9 +2012,9 @@ async function bootstrapCompilerChain(...supplied) {
|
|
|
2050
2012
|
let comparisons = (((metadata)["fixedPoint"])["comparisons"])["filter"](((item) => {
|
|
2051
2013
|
return ((item)["target"] === host);
|
|
2052
2014
|
}));
|
|
2053
|
-
return ((
|
|
2015
|
+
return ((__eliscript_value_119) => (__eliscript_truthy(__eliscript_value_119) ? ((__eliscript_value_120) => (__eliscript_truthy(__eliscript_value_120) ? (comparisons)["every"](((item) => {
|
|
2054
2016
|
return ((item)["status"] === "identical");
|
|
2055
|
-
})) :
|
|
2017
|
+
})) : __eliscript_value_120))((((comparisons) ?? []).length === __eliscript_numeric_decrement(((records) ?? []).length))) : __eliscript_value_119))(__eliscript_numeric_relation(">=", ((records) ?? []).length, 3));
|
|
2056
2018
|
}
|
|
2057
2019
|
}));
|
|
2058
2020
|
(((metadata)["fixedPoint"])["status"] = (__eliscript_truthy(complete) ? "identical" : (__eliscript_truthy((((metadata)["fixedPoint"])["comparisons"])["some"](((item) => {
|
|
@@ -2066,7 +2028,7 @@ async function bootstrapCompilerChain(...supplied) {
|
|
|
2066
2028
|
((metadata)["status"] = "failed");
|
|
2067
2029
|
((metadata)["failure"] = copyHostRecord(({"phase": phase}), compilerFailure(error)));
|
|
2068
2030
|
await (saveCompilerMetadata(manifest, metadata));
|
|
2069
|
-
return ((
|
|
2031
|
+
return ((__eliscript_value_121) => { throw __eliscript_value_121; })(error);
|
|
2070
2032
|
} finally {
|
|
2071
2033
|
(__eliscript_truthy(host_truthy(active)) ? (await (async () => {
|
|
2072
2034
|
try {
|
|
@@ -2077,7 +2039,7 @@ async function bootstrapCompilerChain(...supplied) {
|
|
|
2077
2039
|
((metadata)["status"] = "failed");
|
|
2078
2040
|
await (saveCompilerMetadata(manifest, metadata));
|
|
2079
2041
|
if ((!__eliscript_truthy(failed))) {
|
|
2080
|
-
return ((
|
|
2042
|
+
return ((__eliscript_value_122) => { throw __eliscript_value_122; })(error);
|
|
2081
2043
|
} else {
|
|
2082
2044
|
return null;
|
|
2083
2045
|
}
|
|
@@ -2102,7 +2064,7 @@ async function bootstrapCompilerChain(...supplied) {
|
|
|
2102
2064
|
async function bootstrapIndependentCompilers(...supplied) {
|
|
2103
2065
|
return (await (async (options) => {
|
|
2104
2066
|
if ((!(host_type((options)["outputRoot"]) === "string"))) {
|
|
2105
|
-
((
|
|
2067
|
+
((__eliscript_value_123) => { throw __eliscript_value_123; })(new (globalThis.TypeError)("bootstrap outputRoot is required"));
|
|
2106
2068
|
}
|
|
2107
2069
|
return (await (async (requested) => {
|
|
2108
2070
|
return (await (async (chains) => {
|
|
@@ -2114,7 +2076,7 @@ async function bootstrapIndependentCompilers(...supplied) {
|
|
|
2114
2076
|
}))));
|
|
2115
2077
|
}
|
|
2116
2078
|
if ((!(__eliscript_truthy(Array.isArray(requested)) && __eliscript_numeric_relation(">", ((requested) ?? []).length, 0)))) {
|
|
2117
|
-
((
|
|
2079
|
+
((__eliscript_value_124) => { throw __eliscript_value_124; })(new (globalThis.TypeError)("independent bootstrap chains are required"));
|
|
2118
2080
|
}
|
|
2119
2081
|
((chains = (requested)["map"](((hosts) => {
|
|
2120
2082
|
return host_sequence(({"hosts": hosts}));
|
|
@@ -2148,7 +2110,7 @@ async function bootstrapIndependentCompilers(...supplied) {
|
|
|
2148
2110
|
return ((!((options)["continueOnError"] === true)) ? (await (async () => {
|
|
2149
2111
|
((metadata)["status"] = "failed");
|
|
2150
2112
|
await (saveCompilerMetadata(manifest, metadata));
|
|
2151
|
-
return ((
|
|
2113
|
+
return ((__eliscript_value_125) => { throw __eliscript_value_125; })(error);
|
|
2152
2114
|
})()) : null);
|
|
2153
2115
|
}
|
|
2154
2116
|
})());
|
|
@@ -2161,7 +2123,7 @@ async function bootstrapIndependentCompilers(...supplied) {
|
|
|
2161
2123
|
})());
|
|
2162
2124
|
} catch (__eli_iteration_error_16) {
|
|
2163
2125
|
closeHostIterator(__eli_iterator_15, true);
|
|
2164
|
-
return ((
|
|
2126
|
+
return ((__eliscript_value_126) => { throw __eliscript_value_126; })(__eli_iteration_error_16);
|
|
2165
2127
|
} finally {
|
|
2166
2128
|
closeHostIterator(__eli_iterator_15, false);
|
|
2167
2129
|
}
|
|
@@ -2191,7 +2153,7 @@ async function bootstrapIndependentCompilers(...supplied) {
|
|
|
2191
2153
|
async function bootstrapCompilerGrid(...supplied) {
|
|
2192
2154
|
return (await (async (options) => {
|
|
2193
2155
|
if ((!(host_type((options)["outputRoot"]) === "string"))) {
|
|
2194
|
-
((
|
|
2156
|
+
((__eliscript_value_127) => { throw __eliscript_value_127; })(new (globalThis.TypeError)("compiler grid outputRoot is required"));
|
|
2195
2157
|
}
|
|
2196
2158
|
return (await (async (sources) => {
|
|
2197
2159
|
await (mkdir((options)["outputRoot"], ({"recursive": true})));
|
|
@@ -2211,51 +2173,46 @@ async function bootstrapCompilerGrid(...supplied) {
|
|
|
2211
2173
|
})(await (bootstrapIndependentCompilers(copyHostRecord(options, ({"sources": sources, "outputRoot": join(directory, "generations")}))))) : null);
|
|
2212
2174
|
{
|
|
2213
2175
|
let __eli_iterator_17 = openHostIterator((__eliscript_truthy(Array.isArray(suppliedArtifacts)) ? suppliedArtifacts : Object.values(suppliedArtifacts)));
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2176
|
+
try {
|
|
2177
|
+
while (__eliscript_truthy(advanceHostIterator(__eli_iterator_17))) {
|
|
2178
|
+
{
|
|
2179
|
+
let artifact = (__eli_iterator_17)["value"];
|
|
2217
2180
|
{
|
|
2218
|
-
let
|
|
2219
|
-
{
|
|
2220
|
-
|
|
2221
|
-
if (__eliscript_truthy((producers)["has"](host))) {
|
|
2222
|
-
((__eliscript_value_138) => { throw __eliscript_value_138; })(new (globalThis.TypeError)("compiler grid has duplicate producer hosts"));
|
|
2223
|
-
}
|
|
2224
|
-
assertCompilerArtifactSources(artifact, sources);
|
|
2225
|
-
(producers)["set"](host, artifact);
|
|
2181
|
+
let host = normalizeCompilerHost(host_get(artifact, "host"));
|
|
2182
|
+
if (__eliscript_truthy((producers)["has"](host))) {
|
|
2183
|
+
((__eliscript_value_128) => { throw __eliscript_value_128; })(new (globalThis.TypeError)("compiler grid has duplicate producer hosts"));
|
|
2226
2184
|
}
|
|
2185
|
+
assertCompilerArtifactSources(artifact, sources);
|
|
2186
|
+
(producers)["set"](host, artifact);
|
|
2227
2187
|
}
|
|
2228
2188
|
}
|
|
2229
|
-
return null;
|
|
2230
|
-
} catch (__eli_iteration_error_18) {
|
|
2231
|
-
closeHostIterator(__eli_iterator_17, true);
|
|
2232
|
-
return ((__eliscript_value_139) => { throw __eliscript_value_139; })(__eli_iteration_error_18);
|
|
2233
|
-
} finally {
|
|
2234
|
-
closeHostIterator(__eli_iterator_17, false);
|
|
2235
2189
|
}
|
|
2236
|
-
|
|
2190
|
+
return null;
|
|
2191
|
+
} catch (__eli_iteration_error_18) {
|
|
2192
|
+
closeHostIterator(__eli_iterator_17, true);
|
|
2193
|
+
return ((__eliscript_value_129) => { throw __eliscript_value_129; })(__eli_iteration_error_18);
|
|
2194
|
+
} finally {
|
|
2195
|
+
closeHostIterator(__eli_iterator_17, false);
|
|
2196
|
+
}
|
|
2237
2197
|
}
|
|
2238
2198
|
})((options)["compilerArtifacts"]));
|
|
2239
2199
|
{
|
|
2240
2200
|
let __eli_iterator_19 = openHostIterator((__eliscript_tdz_ready_0 === true ? compilerHosts : __eliscript_tdz_error("compilerHosts")));
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
((__eliscript_value_140) => { throw __eliscript_value_140; })(new (globalThis.TypeError)((String("compiler grid is missing producer ") + String(host))));
|
|
2248
|
-
}
|
|
2201
|
+
try {
|
|
2202
|
+
while (__eliscript_truthy(advanceHostIterator(__eli_iterator_19))) {
|
|
2203
|
+
{
|
|
2204
|
+
let host = (__eli_iterator_19)["value"];
|
|
2205
|
+
if ((!__eliscript_truthy((producers)["has"](host)))) {
|
|
2206
|
+
((__eliscript_value_130) => { throw __eliscript_value_130; })(new (globalThis.TypeError)((String("compiler grid is missing producer ") + String(host))));
|
|
2249
2207
|
}
|
|
2250
2208
|
}
|
|
2251
|
-
return null;
|
|
2252
|
-
} catch (__eli_iteration_error_20) {
|
|
2253
|
-
closeHostIterator(__eli_iterator_19, true);
|
|
2254
|
-
return ((__eliscript_value_141) => { throw __eliscript_value_141; })(__eli_iteration_error_20);
|
|
2255
|
-
} finally {
|
|
2256
|
-
closeHostIterator(__eli_iterator_19, false);
|
|
2257
2209
|
}
|
|
2258
|
-
}
|
|
2210
|
+
} catch (__eli_iteration_error_20) {
|
|
2211
|
+
closeHostIterator(__eli_iterator_19, true);
|
|
2212
|
+
((__eliscript_value_131) => { throw __eliscript_value_131; })(__eli_iteration_error_20);
|
|
2213
|
+
} finally {
|
|
2214
|
+
closeHostIterator(__eli_iterator_19, false);
|
|
2215
|
+
}
|
|
2259
2216
|
}
|
|
2260
2217
|
(await (async (__eli_iterator_23) => {
|
|
2261
2218
|
return (await (async () => {
|
|
@@ -2285,7 +2242,7 @@ async function bootstrapCompilerGrid(...supplied) {
|
|
|
2285
2242
|
((emitted = await (buildIndependentCompiler(copyHostRecord(options, ({"sources": sources, "session": producer, "host": target, "outputRoot": join(cellDirectory, "artifact"), "retainIR": null_default((options)["retainIR"], true), "debug": null_default((options)["debug"], true)}))))));
|
|
2286
2243
|
assert_producer(emitted, producer, sources);
|
|
2287
2244
|
if ((!(normalizeCompilerHost((emitted)["host"]) === target))) {
|
|
2288
|
-
((
|
|
2245
|
+
((__eliscript_value_132) => { throw __eliscript_value_132; })(new (globalThis.Error)("compiler grid emitted a different host"));
|
|
2289
2246
|
}
|
|
2290
2247
|
((cell)["artifact"] = await (archiveCompilerArtifact(emitted, join(cellDirectory, "metadata"))));
|
|
2291
2248
|
((cell)["status"] = "built");
|
|
@@ -2302,7 +2259,7 @@ async function bootstrapCompilerGrid(...supplied) {
|
|
|
2302
2259
|
((cell)["status"] = "failed");
|
|
2303
2260
|
((cell)["failure"] = compilerFailure(error));
|
|
2304
2261
|
if ((!((options)["continueOnError"] === true))) {
|
|
2305
|
-
return ((
|
|
2262
|
+
return ((__eliscript_value_133) => { throw __eliscript_value_133; })(error);
|
|
2306
2263
|
} else {
|
|
2307
2264
|
return null;
|
|
2308
2265
|
}
|
|
@@ -2325,7 +2282,7 @@ async function bootstrapCompilerGrid(...supplied) {
|
|
|
2325
2282
|
})());
|
|
2326
2283
|
} catch (__eli_iteration_error_22) {
|
|
2327
2284
|
closeHostIterator(__eli_iterator_21, true);
|
|
2328
|
-
return ((
|
|
2285
|
+
return ((__eliscript_value_134) => { throw __eliscript_value_134; })(__eli_iteration_error_22);
|
|
2329
2286
|
} finally {
|
|
2330
2287
|
closeHostIterator(__eli_iterator_21, false);
|
|
2331
2288
|
}
|
|
@@ -2352,7 +2309,7 @@ async function bootstrapCompilerGrid(...supplied) {
|
|
|
2352
2309
|
})());
|
|
2353
2310
|
} catch (__eli_iteration_error_24) {
|
|
2354
2311
|
closeHostIterator(__eli_iterator_23, true);
|
|
2355
|
-
return ((
|
|
2312
|
+
return ((__eliscript_value_135) => { throw __eliscript_value_135; })(__eli_iteration_error_24);
|
|
2356
2313
|
} finally {
|
|
2357
2314
|
closeHostIterator(__eli_iterator_23, false);
|
|
2358
2315
|
}
|
|
@@ -2361,46 +2318,43 @@ async function bootstrapCompilerGrid(...supplied) {
|
|
|
2361
2318
|
return (await (async (canonicalArtifacts) => {
|
|
2362
2319
|
{
|
|
2363
2320
|
let __eli_iterator_25 = openHostIterator((__eliscript_tdz_ready_0 === true ? compilerHosts : __eliscript_tdz_error("compilerHosts")));
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2321
|
+
try {
|
|
2322
|
+
while (__eliscript_truthy(advanceHostIterator(__eli_iterator_25))) {
|
|
2323
|
+
{
|
|
2324
|
+
let target = (__eli_iterator_25)["value"];
|
|
2367
2325
|
{
|
|
2368
|
-
let
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
(
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
return ((artifact)["host"] === target);
|
|
2386
|
-
})));
|
|
2387
|
-
}
|
|
2326
|
+
let cells = ((metadata)["cells"])["filter"](((cell) => {
|
|
2327
|
+
return ((cell)["target"] === target);
|
|
2328
|
+
}));
|
|
2329
|
+
let identities = (cells)["map"](((cell) => {
|
|
2330
|
+
return null_default(host_get(host_get((cell)["artifact"], "productIdentity"), "sha256"), null);
|
|
2331
|
+
}));
|
|
2332
|
+
let complete = ((__eliscript_value_136) => (__eliscript_truthy(__eliscript_value_136) ? (cells)["every"](((cell) => {
|
|
2333
|
+
return (((cell)["status"] === "constructed") && ((cell)["execution"] === "initialized"));
|
|
2334
|
+
})) : __eliscript_value_136))((((cells) ?? []).length === 3));
|
|
2335
|
+
let status = ((__eliscript_truthy(complete) && __eliscript_truthy((identities)["every"](((identity) => {
|
|
2336
|
+
return host_truthy(identity);
|
|
2337
|
+
})))) ? (((new (globalThis.Set)(identities))["size"] === 1) ? "identical" : "different") : "unverified");
|
|
2338
|
+
((metadata)["comparisons"])["push"](({"target": target, "status": status, "identities": identities}));
|
|
2339
|
+
if ((status === "identical")) {
|
|
2340
|
+
(canonicalArtifacts)["push"]((artifacts)["find"](((artifact) => {
|
|
2341
|
+
return ((artifact)["host"] === target);
|
|
2342
|
+
})));
|
|
2388
2343
|
}
|
|
2389
2344
|
}
|
|
2390
2345
|
}
|
|
2391
|
-
return null;
|
|
2392
|
-
} catch (__eli_iteration_error_26) {
|
|
2393
|
-
closeHostIterator(__eli_iterator_25, true);
|
|
2394
|
-
return ((__eliscript_value_147) => { throw __eliscript_value_147; })(__eli_iteration_error_26);
|
|
2395
|
-
} finally {
|
|
2396
|
-
closeHostIterator(__eli_iterator_25, false);
|
|
2397
2346
|
}
|
|
2398
|
-
}
|
|
2347
|
+
} catch (__eli_iteration_error_26) {
|
|
2348
|
+
closeHostIterator(__eli_iterator_25, true);
|
|
2349
|
+
((__eliscript_value_137) => { throw __eliscript_value_137; })(__eli_iteration_error_26);
|
|
2350
|
+
} finally {
|
|
2351
|
+
closeHostIterator(__eli_iterator_25, false);
|
|
2352
|
+
}
|
|
2399
2353
|
}
|
|
2400
2354
|
{
|
|
2401
|
-
let constructed = ((
|
|
2355
|
+
let constructed = ((__eliscript_value_138) => (__eliscript_truthy(__eliscript_value_138) ? ((__eliscript_value_139) => (__eliscript_truthy(__eliscript_value_139) ? (!__eliscript_truthy(host_truthy(host_get((metadata)["cleanupFailures"], "length")))) : __eliscript_value_139))(((metadata)["cells"])["every"](((cell) => {
|
|
2402
2356
|
return ((cell)["status"] === "constructed");
|
|
2403
|
-
}))) :
|
|
2357
|
+
}))) : __eliscript_value_138))(((((metadata)["cells"]) ?? []).length === 9));
|
|
2404
2358
|
((metadata)["identityVerification"] = ((__eliscript_truthy(constructed) && __eliscript_truthy(((metadata)["comparisons"])["every"](((item) => {
|
|
2405
2359
|
return ((item)["status"] === "identical");
|
|
2406
2360
|
})))) ? "identical" : "unverified"));
|
|
@@ -2413,7 +2367,7 @@ async function bootstrapCompilerGrid(...supplied) {
|
|
|
2413
2367
|
((metadata)["status"] = "failed");
|
|
2414
2368
|
((metadata)["failure"] = compilerFailure(error));
|
|
2415
2369
|
await (saveCompilerMetadata(manifest, metadata));
|
|
2416
|
-
return ((
|
|
2370
|
+
return ((__eliscript_value_140) => { throw __eliscript_value_140; })(error);
|
|
2417
2371
|
}
|
|
2418
2372
|
})());
|
|
2419
2373
|
})());
|