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.
Files changed (526) hide show
  1. package/COPYING.RUNTIME +93 -0
  2. package/README.md +15 -3
  3. package/bin/eliscript-test +29 -0
  4. package/bootstrap/backends/README.md +5 -4
  5. package/bootstrap/backends/binary.eli +89 -22
  6. package/bootstrap/backends/capabilities.eli +9 -4
  7. package/bootstrap/backends/managed-layout.eli +93 -81
  8. package/bootstrap/backends/managed.eli +651 -125
  9. package/bootstrap/backends/native.eli +1791 -324
  10. package/bootstrap/backends/numeric.eli +71 -7
  11. package/bootstrap/backends/sha256.eli +165 -68
  12. package/bootstrap/backends/wasm.eli +461 -52
  13. package/bootstrap/compiler/analyzer.eli +692 -2
  14. package/bootstrap/compiler/compiler.eli +16 -3
  15. package/bootstrap/compiler/emitter.eli +80 -35
  16. package/bootstrap/compiler/project.eli +175 -1
  17. package/bootstrap/compiler/transient-analysis.eli +2 -2
  18. package/bootstrap/host/build.eli +1 -0
  19. package/bootstrap/host/build.mjs +1 -1
  20. package/bootstrap/host/build.mjs.map +1 -1
  21. package/bootstrap/host/bun.mjs +7 -9
  22. package/bootstrap/host/bun.mjs.map +1 -1
  23. package/bootstrap/host/check-cli-ground.eli +47 -5
  24. package/bootstrap/host/check-cli-ground.mjs +60 -19
  25. package/bootstrap/host/check-cli-ground.mjs.map +1 -1
  26. package/bootstrap/host/check-cli.mjs +41 -1
  27. package/bootstrap/host/check-cli.mjs.map +1 -1
  28. package/bootstrap/host/compiler-session.eli +136 -22
  29. package/bootstrap/host/eliscript-cli.mjs +1 -1
  30. package/bootstrap/host/eliscript-cli.mjs.map +1 -1
  31. package/bootstrap/host/evaluation-cli.eli +33 -1
  32. package/bootstrap/host/evaluation-cli.mjs +65 -28
  33. package/bootstrap/host/evaluation-cli.mjs.map +1 -1
  34. package/bootstrap/host/evaluation.eli +651 -42
  35. package/bootstrap/host/evaluation.mjs +884 -72
  36. package/bootstrap/host/evaluation.mjs.map +1 -1
  37. package/bootstrap/host/project-cli-ground.eli +6 -1
  38. package/bootstrap/host/project-cli-ground.mjs +33 -32
  39. package/bootstrap/host/project-cli-ground.mjs.map +1 -1
  40. package/bootstrap/host/project-cli.mjs +1 -1
  41. package/bootstrap/host/project-cli.mjs.map +1 -1
  42. package/bootstrap/host/project-ground.eli +266 -45
  43. package/bootstrap/host/project-ground.mjs +429 -159
  44. package/bootstrap/host/project-ground.mjs.map +1 -1
  45. package/bootstrap/host/project.mjs +30 -40
  46. package/bootstrap/host/project.mjs.map +1 -1
  47. package/bootstrap/host/test-cli.eli +379 -0
  48. package/bootstrap/host/test-cli.mjs +494 -0
  49. package/bootstrap/host/test-cli.mjs.map +1 -0
  50. package/browser/README.md +7 -0
  51. package/browser/host.mjs +21 -29
  52. package/browser/host.mjs.map +1 -1
  53. package/browser/worker.mjs +7 -9
  54. package/browser/worker.mjs.map +1 -1
  55. package/compiler/eliscript-analyzer.el +694 -0
  56. package/compiler/eliscript-cli.el +66 -22
  57. package/compiler/eliscript-emitter.el +67 -43
  58. package/compiler/eliscript-ir-emitter.el +71 -36
  59. package/compiler/eliscript-project.el +360 -80
  60. package/compiler/eliscript-transient-analysis.el +5 -5
  61. package/compiler/eliscript.el +6 -0
  62. package/dist/backends/binary.mjs +148 -26
  63. package/dist/backends/binary.mjs.map +1 -1
  64. package/dist/backends/capabilities.mjs +11 -4
  65. package/dist/backends/capabilities.mjs.map +1 -1
  66. package/dist/backends/elf.mjs +4 -4
  67. package/dist/backends/elf.mjs.map +1 -1
  68. package/dist/backends/managed-layout.mjs +53 -56
  69. package/dist/backends/managed-layout.mjs.map +1 -1
  70. package/dist/backends/managed.mjs +1116 -375
  71. package/dist/backends/managed.mjs.map +1 -1
  72. package/dist/backends/memory.mjs +24 -26
  73. package/dist/backends/memory.mjs.map +1 -1
  74. package/dist/backends/native.mjs +2529 -434
  75. package/dist/backends/native.mjs.map +1 -1
  76. package/dist/backends/numeric.mjs +140 -33
  77. package/dist/backends/numeric.mjs.map +1 -1
  78. package/dist/backends/optimize.mjs +2 -2
  79. package/dist/backends/optimize.mjs.map +1 -1
  80. package/dist/backends/regexp.mjs +33 -35
  81. package/dist/backends/regexp.mjs.map +1 -1
  82. package/dist/backends/sha256.mjs +159 -59
  83. package/dist/backends/sha256.mjs.map +1 -1
  84. package/dist/backends/wasm.mjs +609 -73
  85. package/dist/backends/wasm.mjs.map +1 -1
  86. package/dist/bootstrap/analyzer.mjs +1018 -2
  87. package/dist/bootstrap/analyzer.mjs.map +1 -1
  88. package/dist/bootstrap/compiler.mjs +30 -23
  89. package/dist/bootstrap/compiler.mjs.map +1 -1
  90. package/dist/bootstrap/emitter.mjs +206 -161
  91. package/dist/bootstrap/emitter.mjs.macro-origins.json +16 -16
  92. package/dist/bootstrap/emitter.mjs.map +1 -1
  93. package/dist/bootstrap/expander.mjs +27 -31
  94. package/dist/bootstrap/expander.mjs.map +1 -1
  95. package/dist/bootstrap/ir.mjs +22 -24
  96. package/dist/bootstrap/ir.mjs.map +1 -1
  97. package/dist/bootstrap/project.mjs +246 -1
  98. package/dist/bootstrap/project.mjs.map +1 -1
  99. package/dist/bootstrap/reader.mjs +2 -2
  100. package/dist/bootstrap/reader.mjs.map +1 -1
  101. package/dist/bootstrap/source-map.mjs +34 -48
  102. package/dist/bootstrap/source-map.mjs.map +1 -1
  103. package/dist/bootstrap/transient-analysis.mjs +2 -2
  104. package/dist/bootstrap/transient-analysis.mjs.map +1 -1
  105. package/dist/browser/compiler.js +106 -106
  106. package/dist/browser/host.mjs +21 -29
  107. package/dist/browser/loader.js +1 -1
  108. package/dist/browser/worker.mjs +95 -95
  109. package/dist/compiler-artifact.json +1 -1
  110. package/dist/host/compiler-session.mjs +405 -228
  111. package/dist/host/compiler-session.mjs.map +1 -1
  112. package/dist/host/compiler-tools.mjs +44 -46
  113. package/dist/host/compiler-tools.mjs.map +1 -1
  114. package/dist/literal-sources/runtime/core/array-map.eli +45 -0
  115. package/dist/literal-sources/runtime/core/collection-internals.eli +22 -2
  116. package/dist/literal-sources/runtime/core/collection.eli +282 -23
  117. package/dist/literal-sources/runtime/core/data-text.eli +196 -13
  118. package/dist/literal-sources/runtime/core/data.eli +1 -1
  119. package/dist/literal-sources/runtime/core/identifier.eli +1 -1
  120. package/dist/literal-sources/runtime/core/lazy-sequence.eli +822 -44
  121. package/dist/literal-sources/runtime/core/list.eli +1 -1
  122. package/dist/literal-sources/runtime/core/map.eli +1 -1
  123. package/dist/literal-sources/runtime/core/metadata-internals.eli +2 -2
  124. package/dist/literal-sources/runtime/core/metadata.eli +2 -2
  125. package/dist/literal-sources/{stdlib/core/object.eli → runtime/core/object-impl.eli} +6 -6
  126. package/dist/literal-sources/runtime/core/object.eli +1 -1
  127. package/dist/literal-sources/runtime/core/order.eli +3 -3
  128. package/dist/literal-sources/runtime/core/persistent-kind.eli +1 -1
  129. package/dist/literal-sources/{stdlib/core/protocol.eli → runtime/core/protocol-impl.eli} +2 -2
  130. package/dist/literal-sources/runtime/core/protocol.eli +5 -3
  131. package/dist/literal-sources/runtime/core/queue.eli +1 -1
  132. package/dist/literal-sources/runtime/core/record.eli +3 -3
  133. package/dist/literal-sources/runtime/core/regex.eli +2 -2
  134. package/dist/literal-sources/runtime/core/sequence.eli +1 -1
  135. package/dist/literal-sources/runtime/core/set-algebra.eli +1 -1
  136. package/dist/literal-sources/runtime/core/set.eli +1 -1
  137. package/dist/literal-sources/runtime/core/sorted.eli +4 -4
  138. package/dist/literal-sources/{stdlib/core/text.eli → runtime/core/text-impl.eli} +2 -2
  139. package/dist/literal-sources/runtime/core/text.eli +1 -1
  140. package/dist/literal-sources/runtime/core/transducer.eli +24 -2
  141. package/dist/literal-sources/runtime/core/transient.eli +7 -5
  142. package/dist/literal-sources/runtime/core/type.eli +1 -1
  143. package/dist/literal-sources/runtime/core/value-internals.eli +3 -3
  144. package/dist/literal-sources/runtime/core/value.eli +2 -2
  145. package/dist/literal-sources/runtime/core/vector.eli +5 -2
  146. package/dist/literal-sources/{stdlib → runtime/managed}/managed-literal-protocols.eli +100 -34
  147. package/dist/literal-sources/{stdlib → runtime/managed}/managed-literals.eli +406 -81
  148. package/{stdlib → dist/literal-sources/runtime/managed}/managed-queue-state.eli +1 -1
  149. package/{stdlib → dist/literal-sources/runtime/managed}/managed-sorted-state.eli +1 -1
  150. package/dist/literal-sources/runtime/managed/managed-transient-state.eli +1206 -0
  151. package/{stdlib → dist/literal-sources/runtime/managed}/managed-value-state.eli +30 -6
  152. package/dist/literal-sources/{stdlib → runtime/managed}/managed-vector-view-state.eli +1 -1
  153. package/dist/literal-sources/runtime/wire/http-rpc.eli +1 -1
  154. package/dist/literal-sources/runtime/wire/markdown.eli +1 -1
  155. package/dist/literal-sources/runtime/wire/schema.eli +1 -1
  156. package/dist/literal-sources/stdlib/bit.eli +89 -1
  157. package/dist/literal-sources/stdlib/data.eli +522 -0
  158. package/dist/literal-sources/stdlib/interop/object.eli +39 -0
  159. package/dist/literal-sources/stdlib/persistent-list.eli +60 -21
  160. package/dist/literal-sources/stdlib/persistent-map.eli +335 -324
  161. package/dist/literal-sources/stdlib/persistent-set.eli +8 -6
  162. package/dist/literal-sources/stdlib/persistent-vector.eli +18 -18
  163. package/dist/literal-sources/stdlib/protocol.eli +63 -0
  164. package/{stdlib/core → dist/literal-sources/stdlib}/set.eli +8 -8
  165. package/dist/literal-sources/stdlib/string.eli +362 -0
  166. package/dist/runtime/lisp/async-runtime.mjs +55 -59
  167. package/dist/runtime/lisp/async-runtime.mjs.map +1 -1
  168. package/dist/runtime/lisp/builtins.mjs +232 -280
  169. package/dist/runtime/lisp/builtins.mjs.map +1 -1
  170. package/dist/runtime/lisp/cli.mjs +159 -167
  171. package/dist/runtime/lisp/cli.mjs.map +1 -1
  172. package/dist/runtime/lisp/compiler.mjs +359 -419
  173. package/dist/runtime/lisp/compiler.mjs.map +1 -1
  174. package/dist/runtime/lisp/core.mjs +24 -24
  175. package/dist/runtime/lisp/core.mjs.map +1 -1
  176. package/dist/runtime/lisp/evaluator.mjs +315 -385
  177. package/dist/runtime/lisp/evaluator.mjs.map +1 -1
  178. package/dist/runtime/lisp/extensions.mjs +85 -103
  179. package/dist/runtime/lisp/extensions.mjs.map +1 -1
  180. package/dist/runtime/lisp/host-io.mjs +106 -122
  181. package/dist/runtime/lisp/host-io.mjs.map +1 -1
  182. package/dist/runtime/lisp/io-worker.mjs +117 -135
  183. package/dist/runtime/lisp/io-worker.mjs.map +1 -1
  184. package/dist/runtime/lisp/keymap.mjs +5 -5
  185. package/dist/runtime/lisp/keymap.mjs.map +1 -1
  186. package/dist/runtime/lisp/macros-forms.mjs +49 -51
  187. package/dist/runtime/lisp/macros-forms.mjs.map +1 -1
  188. package/dist/runtime/lisp/reader-format.mjs +31 -31
  189. package/dist/runtime/lisp/reader-format.mjs.map +1 -1
  190. package/dist/runtime/lisp/regexp-buffer.mjs +9 -9
  191. package/dist/runtime/lisp/regexp-buffer.mjs.map +1 -1
  192. package/dist/runtime/math.mjs +32 -38
  193. package/dist/runtime/math.mjs.map +1 -1
  194. package/dist/runtime/number-radix.mjs +5 -7
  195. package/dist/runtime/number-radix.mjs.map +1 -1
  196. package/dist/runtime/primitives.mjs +81 -46
  197. package/dist/runtime/primitives.mjs.macro-origins.json +294 -44
  198. package/dist/runtime/primitives.mjs.map +1 -1
  199. package/dist/runtime/unicode-case.mjs +6 -6
  200. package/dist/runtime/unicode-case.mjs.map +1 -1
  201. package/dist/runtime.eli +3068 -1882
  202. package/dist/stage3-release.json +1 -1
  203. package/dist/stdlib/async.mjs +1838 -0
  204. package/dist/stdlib/bit.mjs +116 -0
  205. package/dist/stdlib/collection.mjs +193 -0
  206. package/dist/stdlib/core.mjs +28 -0
  207. package/dist/stdlib/data-text.mjs +54 -0
  208. package/dist/stdlib/data.mjs +601 -0
  209. package/dist/stdlib/devtools.mjs +565 -0
  210. package/dist/stdlib/diff.mjs +180 -0
  211. package/dist/stdlib/fn.mjs +164 -0
  212. package/dist/stdlib/hierarchy.mjs +189 -0
  213. package/dist/stdlib/identifier.mjs +33 -0
  214. package/dist/stdlib/interop/js.mjs +706 -0
  215. package/dist/stdlib/interop/object.mjs +40 -0
  216. package/dist/stdlib/json.mjs +843 -0
  217. package/dist/stdlib/lazy-sequence.mjs +117 -0
  218. package/dist/stdlib/math.mjs +386 -0
  219. package/dist/stdlib/meta.mjs +21 -0
  220. package/dist/stdlib/multimethod.mjs +345 -0
  221. package/dist/stdlib/numeric.mjs +327 -0
  222. package/dist/stdlib/order.mjs +194 -0
  223. package/dist/stdlib/persistent-list.mjs +171 -0
  224. package/dist/stdlib/persistent-map.mjs +781 -0
  225. package/dist/stdlib/persistent-queue.mjs +44 -0
  226. package/dist/stdlib/persistent-set.mjs +225 -0
  227. package/dist/stdlib/persistent-vector.mjs +316 -0
  228. package/dist/stdlib/portable/data-text.mjs +1094 -0
  229. package/dist/stdlib/portable/data.mjs +62 -0
  230. package/dist/stdlib/portable/identifier.mjs +179 -0
  231. package/dist/stdlib/portable/metadata.mjs +63 -0
  232. package/dist/stdlib/portable/object.mjs +140 -0
  233. package/dist/stdlib/portable/sequence.mjs +142 -0
  234. package/dist/stdlib/portable/text.mjs +111 -0
  235. package/dist/stdlib/pprint.mjs +807 -0
  236. package/dist/stdlib/protocol.mjs +61 -0
  237. package/dist/stdlib/record.mjs +25 -0
  238. package/dist/stdlib/regex.mjs +115 -0
  239. package/dist/stdlib/result.mjs +198 -0
  240. package/dist/stdlib/schema.mjs +2828 -0
  241. package/dist/stdlib/seq.mjs +913 -0
  242. package/dist/stdlib/set.mjs +317 -0
  243. package/dist/stdlib/sorted.mjs +56 -0
  244. package/dist/stdlib/state.mjs +451 -0
  245. package/dist/stdlib/string.mjs +494 -0
  246. package/dist/stdlib/tap.mjs +187 -0
  247. package/dist/stdlib/test.mjs +669 -0
  248. package/dist/stdlib/time.mjs +522 -0
  249. package/dist/stdlib/transducer.mjs +85 -0
  250. package/dist/stdlib/transient.mjs +32 -0
  251. package/dist/stdlib/type.mjs +28 -0
  252. package/dist/stdlib/uuid.mjs +377 -0
  253. package/dist/stdlib/value.mjs +334 -0
  254. package/dist/stdlib/walk.mjs +243 -0
  255. package/dist/stdlib/wire/gepo.mjs +28 -0
  256. package/dist/stdlib/wire/mdp.mjs +13 -0
  257. package/dist/stdlib/wire/mds.mjs +10 -0
  258. package/dist/stdlib/zipper.mjs +1025 -0
  259. package/editor/README.md +15 -0
  260. package/editor/eliscript-data.el +221 -8
  261. package/editor/eliscript-mode.el +207 -48
  262. package/editor/eliscript-runtime.el +6 -3
  263. package/package.json +49 -15
  264. package/platform/README.md +6 -0
  265. package/platform/browser.mjs +10 -12
  266. package/platform/browser.mjs.map +1 -1
  267. package/runtime/README.md +12 -5
  268. package/runtime/core/array-map.eli +538 -0
  269. package/runtime/core/array-map.mjs +651 -0
  270. package/runtime/core/array-map.mjs.map +1 -0
  271. package/runtime/core/collection-internals.eli +85 -33
  272. package/runtime/core/collection-internals.mjs +245 -193
  273. package/runtime/core/collection-internals.mjs.map +1 -1
  274. package/runtime/core/collection.eli +105 -3
  275. package/runtime/core/collection.mjs +190 -53
  276. package/runtime/core/collection.mjs.map +1 -1
  277. package/runtime/core/data-text.eli +224 -16
  278. package/runtime/core/data-text.mjs +345 -83
  279. package/runtime/core/data-text.mjs.map +1 -1
  280. package/runtime/core/data.eli +50 -33
  281. package/runtime/core/data.mjs +72 -36
  282. package/runtime/core/data.mjs.map +1 -1
  283. package/runtime/core/identifier.mjs +15 -19
  284. package/runtime/core/identifier.mjs.map +1 -1
  285. package/runtime/core/lazy-sequence.eli +885 -15
  286. package/runtime/core/lazy-sequence.mjs +1265 -38
  287. package/runtime/core/lazy-sequence.mjs.map +1 -1
  288. package/runtime/core/map-internals.eli +209 -1
  289. package/runtime/core/map-internals.mjs +359 -71
  290. package/runtime/core/map-internals.mjs.map +1 -1
  291. package/runtime/core/map.eli +75 -7
  292. package/runtime/core/map.mjs +122 -47
  293. package/runtime/core/map.mjs.map +1 -1
  294. package/{stdlib/core/object.eli → runtime/core/object-impl.eli} +6 -6
  295. package/runtime/core/object-impl.mjs +5 -5
  296. package/runtime/core/object-impl.mjs.map +1 -1
  297. package/runtime/core/order.eli +15 -3
  298. package/runtime/core/order.mjs +23 -8
  299. package/runtime/core/order.mjs.map +1 -1
  300. package/runtime/core/persistent-kind.mjs +9 -13
  301. package/runtime/core/persistent-kind.mjs.map +1 -1
  302. package/runtime/core/protocol-error.mjs +9 -11
  303. package/runtime/core/protocol-error.mjs.map +1 -1
  304. package/{stdlib/core/protocol.eli → runtime/core/protocol-impl.eli} +2 -2
  305. package/runtime/core/protocol-impl.mjs +10 -10
  306. package/runtime/core/protocol-impl.mjs.map +1 -1
  307. package/runtime/core/queue.mjs +14 -16
  308. package/runtime/core/queue.mjs.map +1 -1
  309. package/runtime/core/record.eli +2 -2
  310. package/runtime/core/record.mjs +13 -17
  311. package/runtime/core/record.mjs.map +1 -1
  312. package/runtime/core/regex.mjs +18 -22
  313. package/runtime/core/regex.mjs.map +1 -1
  314. package/runtime/core/sequence.eli +33 -31
  315. package/runtime/core/sequence.mjs +60 -93
  316. package/runtime/core/sequence.mjs.map +1 -1
  317. package/runtime/core/set.eli +53 -27
  318. package/runtime/core/set.mjs +113 -82
  319. package/runtime/core/set.mjs.map +1 -1
  320. package/runtime/core/sorted.mjs +91 -108
  321. package/runtime/core/sorted.mjs.map +1 -1
  322. package/{stdlib/core/text.eli → runtime/core/text-impl.eli} +2 -2
  323. package/runtime/core/text-impl.mjs +1 -1
  324. package/runtime/core/text-impl.mjs.map +1 -1
  325. package/runtime/core/transducer.eli +24 -0
  326. package/runtime/core/transducer.mjs +27 -1
  327. package/runtime/core/transducer.mjs.map +1 -1
  328. package/runtime/core/transient-internals.eli +12 -4
  329. package/runtime/core/transient-internals.mjs +19 -6
  330. package/runtime/core/transient-internals.mjs.map +1 -1
  331. package/runtime/core/transient.eli +31 -0
  332. package/runtime/core/transient.mjs +33 -2
  333. package/runtime/core/transient.mjs.map +1 -1
  334. package/runtime/core/value-internals.mjs +29 -35
  335. package/runtime/core/value-internals.mjs.map +1 -1
  336. package/runtime/core/vector.eli +73 -20
  337. package/runtime/core/vector.mjs +159 -156
  338. package/runtime/core/vector.mjs.map +1 -1
  339. package/runtime/literals.eli +16 -9
  340. package/runtime/literals.mjs +25 -9
  341. package/runtime/literals.mjs.map +1 -1
  342. package/{stdlib → runtime/managed}/managed-literal-protocols.eli +100 -34
  343. package/{stdlib → runtime/managed}/managed-literals.eli +406 -81
  344. package/{dist/literal-sources/stdlib → runtime/managed}/managed-queue-state.eli +1 -1
  345. package/runtime/managed/managed-runtime-array-map.eli +45 -0
  346. package/{stdlib → runtime/managed}/managed-runtime-collection-internals.eli +22 -2
  347. package/{stdlib → runtime/managed}/managed-runtime-collection.eli +282 -23
  348. package/{stdlib → runtime/managed}/managed-runtime-data-text.eli +196 -13
  349. package/{stdlib → runtime/managed}/managed-runtime-data.eli +1 -1
  350. package/{stdlib → runtime/managed}/managed-runtime-identifier.eli +1 -1
  351. package/runtime/managed/managed-runtime-lazy-sequence.eli +935 -0
  352. package/{stdlib → runtime/managed}/managed-runtime-list.eli +1 -1
  353. package/{stdlib → runtime/managed}/managed-runtime-map.eli +1 -1
  354. package/{stdlib → runtime/managed}/managed-runtime-metadata-internals.eli +2 -2
  355. package/{stdlib → runtime/managed}/managed-runtime-metadata.eli +2 -2
  356. package/{stdlib → runtime/managed}/managed-runtime-object.eli +1 -1
  357. package/{stdlib → runtime/managed}/managed-runtime-order.eli +3 -3
  358. package/{stdlib → runtime/managed}/managed-runtime-persistent-kind.eli +1 -1
  359. package/{stdlib → runtime/managed}/managed-runtime-protocol.eli +5 -3
  360. package/{stdlib → runtime/managed}/managed-runtime-queue.eli +1 -1
  361. package/{stdlib → runtime/managed}/managed-runtime-record.eli +3 -3
  362. package/{stdlib → runtime/managed}/managed-runtime-regex.eli +2 -2
  363. package/{stdlib → runtime/managed}/managed-runtime-sequence.eli +1 -1
  364. package/{stdlib → runtime/managed}/managed-runtime-set-algebra.eli +1 -1
  365. package/{stdlib → runtime/managed}/managed-runtime-set.eli +1 -1
  366. package/{stdlib → runtime/managed}/managed-runtime-sorted.eli +4 -4
  367. package/{stdlib → runtime/managed}/managed-runtime-text.eli +1 -1
  368. package/{stdlib → runtime/managed}/managed-runtime-transducer.eli +24 -2
  369. package/{stdlib → runtime/managed}/managed-runtime-transient.eli +7 -5
  370. package/{stdlib → runtime/managed}/managed-runtime-type.eli +1 -1
  371. package/{stdlib → runtime/managed}/managed-runtime-value-internals.eli +3 -3
  372. package/{stdlib → runtime/managed}/managed-runtime-value.eli +2 -2
  373. package/{stdlib → runtime/managed}/managed-runtime-vector.eli +5 -2
  374. package/{dist/literal-sources/stdlib → runtime/managed}/managed-sorted-state.eli +1 -1
  375. package/runtime/managed/managed-transient-state.eli +1206 -0
  376. package/{dist/literal-sources/stdlib → runtime/managed}/managed-value-state.eli +30 -6
  377. package/{stdlib → runtime/managed}/managed-vector-view-state.eli +1 -1
  378. package/{stdlib → runtime/managed}/managed-wire-http-rpc.eli +1 -1
  379. package/{stdlib → runtime/managed}/managed-wire-markdown.eli +1 -1
  380. package/{stdlib → runtime/managed}/managed-wire-schema.eli +1 -1
  381. package/runtime/math.mjs +32 -38
  382. package/runtime/math.mjs.map +1 -1
  383. package/runtime/number-radix.mjs +5 -7
  384. package/runtime/number-radix.mjs.map +1 -1
  385. package/runtime/primitives.eli +19 -6
  386. package/runtime/primitives.mjs +81 -46
  387. package/runtime/primitives.mjs.map +1 -1
  388. package/runtime/source-mapping.mjs +17 -23
  389. package/runtime/source-mapping.mjs.map +1 -1
  390. package/runtime/testing/map.eli +70 -41
  391. package/runtime/testing/map.mjs +57 -34
  392. package/runtime/testing/map.mjs.map +1 -1
  393. package/runtime/unicode-case.mjs +6 -6
  394. package/runtime/unicode-case.mjs.map +1 -1
  395. package/runtime/wire/http-rpc.mjs +12 -18
  396. package/runtime/wire/http-rpc.mjs.map +1 -1
  397. package/runtime/wire/markdown.mjs +42 -42
  398. package/runtime/wire/markdown.mjs.map +1 -1
  399. package/runtime/wire/schema.mjs +13 -13
  400. package/runtime/wire/schema.mjs.map +1 -1
  401. package/runtime/worker-value-codec.mjs +5 -7
  402. package/runtime/worker-value-codec.mjs.map +1 -1
  403. package/runtime/worker-value-stream.mjs +128 -135
  404. package/runtime/worker-value-stream.mjs.map +1 -1
  405. package/runtime/worker.mjs +75 -89
  406. package/runtime/worker.mjs.map +1 -1
  407. package/stdlib/README.md +25 -18
  408. package/stdlib/async.eli +1245 -0
  409. package/stdlib/bit.eli +89 -1
  410. package/stdlib/bit.mjs +89 -2
  411. package/stdlib/bit.mjs.map +1 -1
  412. package/stdlib/{core/collection.eli → collection.eli} +39 -4
  413. package/stdlib/core.eli +956 -0
  414. package/stdlib/data-text.eli +62 -1091
  415. package/stdlib/data.eli +517 -37
  416. package/stdlib/devtools.eli +399 -0
  417. package/stdlib/diff.eli +134 -0
  418. package/stdlib/{function.eli → fn.eli} +1 -1
  419. package/stdlib/identifier.eli +21 -136
  420. package/stdlib/interop/object.eli +39 -0
  421. package/stdlib/{core/lazy-sequence.eli → lazy-sequence.eli} +28 -2
  422. package/stdlib/math.eli +267 -0
  423. package/stdlib/{core/metadata.eli → meta.eli} +2 -2
  424. package/stdlib/{core/order.eli → order.eli} +6 -6
  425. package/stdlib/persistent-list.eli +60 -21
  426. package/stdlib/persistent-map.eli +335 -324
  427. package/stdlib/persistent-set.eli +8 -6
  428. package/stdlib/persistent-vector.eli +18 -18
  429. package/stdlib/portable/data-text.eli +1092 -0
  430. package/stdlib/portable/data.eli +42 -0
  431. package/stdlib/portable/identifier.eli +147 -0
  432. package/stdlib/{metadata.eli → portable/metadata.eli} +5 -5
  433. package/stdlib/{object.eli → portable/object.eli} +1 -1
  434. package/stdlib/{sequence.eli → portable/sequence.eli} +1 -1
  435. package/stdlib/{text.eli → portable/text.eli} +1 -1
  436. package/stdlib/pprint.eli +588 -0
  437. package/stdlib/protocol.eli +63 -0
  438. package/stdlib/{core/record.eli → record.eli} +2 -2
  439. package/stdlib/regex.eli +70 -0
  440. package/stdlib/result.eli +53 -44
  441. package/stdlib/schema.eli +1886 -0
  442. package/stdlib/{core/seq.eli → seq.eli} +97 -90
  443. package/{dist/literal-sources/stdlib/core → stdlib}/set.eli +8 -8
  444. package/stdlib/{core/sorted.eli → sorted.eli} +2 -2
  445. package/stdlib/{state/atom.eli → state.eli} +137 -7
  446. package/stdlib/string.eli +362 -0
  447. package/stdlib/tap.eli +135 -0
  448. package/stdlib/test.eli +566 -0
  449. package/stdlib/time.eli +419 -0
  450. package/stdlib/{core/transducer.eli → transducer.eli} +4 -2
  451. package/stdlib/{core/transient.eli → transient.eli} +11 -5
  452. package/stdlib/{core/type.eli → type.eli} +2 -2
  453. package/stdlib/uuid.eli +288 -0
  454. package/stdlib/{core/walk.eli → walk.eli} +6 -6
  455. package/stdlib/{gepo.eli → wire/gepo.eli} +2 -2
  456. package/stdlib/{mdp.eli → wire/mdp.eli} +2 -2
  457. package/stdlib/{mds.eli → wire/mds.eli} +2 -2
  458. package/stdlib/{core/zipper.eli → zipper.eli} +179 -138
  459. package/tests/helpers/wasm-managed-math-node.mjs +495 -582
  460. package/tools/acceptance/check-ground.mjs +106 -132
  461. package/tools/acceptance/check.mjs +16 -16
  462. package/tools/acceptance/retained-performance-snapshot.mjs +265 -149
  463. package/tools/acceptance/retained-soak.mjs +5 -7
  464. package/tools/acceptance/retained-transient.mjs +5 -7
  465. package/tools/backends/build.mjs +373 -95
  466. package/tools/backends/compiler-bootstrap.mjs +271 -317
  467. package/tools/backends/compiler-browser.mjs +7 -9
  468. package/tools/backends/compiler-build.mjs +77 -97
  469. package/tools/backends/compiler-cli-ground.mjs +47 -47
  470. package/tools/backends/compiler-data-transport.mjs +27 -31
  471. package/tools/backends/compiler-host-iteration.mjs +13 -21
  472. package/tools/backends/compiler-host-record.mjs +28 -34
  473. package/tools/backends/compiler-metadata.mjs +145 -53
  474. package/tools/backends/compiler-package-ground.mjs +39 -47
  475. package/tools/backends/compiler-package-loader.mjs +164 -206
  476. package/tools/backends/compiler-session.mjs +432 -324
  477. package/tools/backends/compiler-worker.mjs +79 -89
  478. package/tools/backends/dist/bootstrap-js-stages.mjs +17 -19
  479. package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -1
  480. package/tools/backends/dist/managed-ir-inventory.mjs +1 -1
  481. package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -1
  482. package/tools/backends/dist/release-cli.mjs +151 -22
  483. package/tools/backends/dist/release-cli.mjs.map +1 -1
  484. package/tools/backends/dist/run-artifact.mjs +54 -76
  485. package/tools/backends/dist/run-artifact.mjs.map +1 -1
  486. package/tools/backends/managed-foreign-binding.mjs +370 -114
  487. package/tools/backends/managed-host-ground.mjs +14 -17
  488. package/tools/backends/managed-host-lifecycle.mjs +42 -53
  489. package/tools/backends/managed-host-object-realm.mjs +121 -111
  490. package/tools/backends/managed-host-proxy.mjs +5 -7
  491. package/tools/backends/managed-host-runtime.mjs +6295 -4350
  492. package/tools/backends/managed-host.mjs +234 -188
  493. package/tools/backends/managed-layout.mjs +53 -56
  494. package/tools/backends/managed-module-graph-ground.mjs +488 -568
  495. package/tools/backends/managed-module-graph.mjs +62 -76
  496. package/tools/backends/managed-runtime-host-ground.mjs +352 -400
  497. package/tools/backends/managed-runtime.mjs +227 -266
  498. package/tools/backends/managed-source-view-ground.mjs +165 -161
  499. package/tools/backends/managed-source-view.mjs +415 -154
  500. package/tools/backends/native-managed-runtime.mjs +96 -138
  501. package/tools/backends/native-memory.mjs +1122 -742
  502. package/tools/backends/native-node-ffi.mjs +2439 -0
  503. package/tools/backends/native-node-memory.mjs +793 -383
  504. package/tools/backends/native-node-runner.mjs +1458 -579
  505. package/tools/backends/native-node-watchdog.mjs +12 -14
  506. package/tools/backends/native-node-worker.mjs +46 -50
  507. package/tools/backends/stage3-targets.mjs +2 -2
  508. package/tools/bootstrap-runtime.el +4 -4
  509. package/tools/collections/transient-builder-benchmark.mjs +17 -17
  510. package/tools/project/check-cli.eli +27 -3
  511. package/tools/project/project-cli.eli +1 -1
  512. package/tools/testing/maintained-suite-source.mjs +5 -7
  513. package/tools/testing/maintained-suite-source.mjs.map +1 -1
  514. package/dist/literal-sources/stdlib/core/data.eli +0 -306
  515. package/dist/literal-sources/stdlib/managed-transient-state.eli +0 -353
  516. package/stdlib/core/data-text.eli +0 -16
  517. package/stdlib/core/data.eli +0 -306
  518. package/stdlib/core/identifier.eli +0 -32
  519. package/stdlib/core/regex.eli +0 -17
  520. package/stdlib/deferred.eli +0 -70
  521. package/stdlib/managed-runtime-lazy-sequence.eli +0 -157
  522. package/stdlib/managed-transient-state.eli +0 -353
  523. /package/{stdlib → runtime/managed}/managed-protocol-error.eli +0 -0
  524. /package/{stdlib → runtime/managed}/managed-runtime-literals.eli +0 -0
  525. /package/{stdlib → runtime/managed}/managed-runtime-truth.eli +0 -0
  526. /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
- return (() => {
116
- try {
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
- return (() => {
129
- try {
130
- return text_of(value);
131
- } catch (ignored) {
132
- return fallback;
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
- return (() => {
153
- try {
154
- if (__eliscript_truthy(Array.isArray(value))) {
155
- {
156
- let result = [];
157
- let index = 0;
158
- while (__eliscript_numeric_relation("<", index, ((value) ?? []).length)) {
159
- (result)["push"](failure_data(failure_property(value, index), path));
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
- } else {
165
- {
166
- let result = ({});
167
- let keys = (globalThis.Object)["keys"](value);
168
- let index = 0;
169
- while (__eliscript_numeric_relation("<", index, ((keys) ?? []).length)) {
170
- {
171
- let key = (keys)[index];
172
- let item = failure_data(failure_property(value, key), path);
173
- if (!((item === undefined))) {
174
- (globalThis.Object)["defineProperty"](result, key, ({"value": item, "enumerable": true, "writable": true, "configurable": true}));
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
- return result;
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
- try {
221
- if ((!__eliscript_truthy(Array.isArray(field)))) {
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
- try {
249
- if (__eliscript_truthy(Array.isArray(errors))) {
250
- if ((__eliscript_truthy((ancestors)["has"](errors)) || __eliscript_numeric_relation(">=", (ancestors)["size"], 64))) {
251
- return ((record)["errors"] = ({"truncatedCause": true}));
252
- } else {
253
- {
254
- let path = new (globalThis.Set)(ancestors);
255
- let cursor = 0;
256
- (path)["add"](errors);
257
- ((record)["errors"] = []);
258
- while (__eliscript_numeric_relation("<", cursor, ((errors) ?? []).length)) {
259
- ((record)["errors"])["push"](compilerFailure(failure_property(errors, cursor), path));
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
- } catch (ignored) {
269
- return ((record)["errors"] = ({"truncatedCause": true}));
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 ((text = (decoder)["decode"](block, ({"stream": true}))));
719
+ return (parser)["write"](text);
726
720
  } catch (error) {
727
- ((decode_failed = true));
728
- ((decode_failure = error));
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)) && (((__eliscript_value_76, __eliscript_value_77) => (__eliscript_value_76 !== __eliscript_value_77))((bytes)["byteLength"], (entry)["bytes"]) || !((compilerDigest(bytes) === (entry)["sha256"]))))) {
1329
- ((__eliscript_value_78) => { throw __eliscript_value_78; })(new (globalThis.Error)((String("compiler resource SHA-256 or byte length identity changed after emission: ") + String((bound)["key"]))));
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 ((__eliscript_value_79) => { throw __eliscript_value_79; })(new (globalThis.Error)((String("compiler resource contains an unsupported file entry: ") + String(key))));
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
- ((__eliscript_value_80) => { throw __eliscript_value_80; })(new (globalThis.Error)("compiler resource read returned an invalid byte count"));
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)) && (((__eliscript_value_81, __eliscript_value_82) => (__eliscript_value_81 !== __eliscript_value_82))(bytes, (entry)["bytes"]) || !(((hash)["digest"]("hex") === (entry)["sha256"]))))) {
1394
- ((__eliscript_value_83) => { throw __eliscript_value_83; })(new (globalThis.Error)((String("compiler resource SHA-256 or byte length identity changed after emission: ") + String(key))));
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 ((__eliscript_value_84) => { throw __eliscript_value_84; })(error);
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 ((__eliscript_value_85) => { throw __eliscript_value_85; })(error);
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
- try {
1451
- return ((text = (decoder)["decode"](block, ({"stream": true}))));
1452
- } catch (error) {
1453
- ((decodeFailed = true));
1454
- ((decodeFailure = error));
1455
- return ((decoded = false));
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
- try {
1463
- return (parser)["write"](text);
1464
- } catch (error) {
1465
- ((parseFailed = true));
1466
- return ((parseFailure = error));
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
- ((__eliscript_value_86) => { throw __eliscript_value_86; })(new (globalThis.TypeError)("unsupported compiler source asset encoding"));
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
- ((__eliscript_value_87) => { throw __eliscript_value_87; })(decodeFailure);
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
- ((__eliscript_value_88) => { throw __eliscript_value_88; })(parseFailure);
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
- ((__eliscript_value_89) => { throw __eliscript_value_89; })(new (globalThis.TypeError)("encoded compiler source asset must contain a JSON string"));
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
- return (() => {
1542
- try {
1543
- return (parser)["write"]((decoder)["decode"](part, ({"stream": true})));
1544
- } catch (error) {
1545
- ((decodeFailed = true));
1546
- return ((decodeFailure = error));
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)) && (((__eliscript_value_90, __eliscript_value_91) => (__eliscript_value_90 !== __eliscript_value_91))(bytes, (entry)["bytes"]) || !(((hash)["digest"]("hex") === (entry)["sha256"]))))) {
1559
- ((__eliscript_value_92) => { throw __eliscript_value_92; })(new (globalThis.Error)((String("compiler resource SHA-256 or byte length identity changed after emission: ") + String(key))));
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
- ((__eliscript_value_93) => { throw __eliscript_value_93; })(decodeFailure);
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 ((__eliscript_value_94) => { throw __eliscript_value_94; })(error);
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 ((__eliscript_value_95) => { throw __eliscript_value_95; })(error);
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
- ((__eliscript_value_96) => { throw __eliscript_value_96; })(new (globalThis.TypeError)("compiler artifact requires a nonempty SHA-256 file identity"));
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
- try {
1600
- while (__eliscript_truthy(advanceHostIterator(__eli_iterator_1))) {
1575
+ try {
1576
+ while (__eliscript_truthy(advanceHostIterator(__eli_iterator_1))) {
1577
+ {
1578
+ let entry = (__eli_iterator_1)["value"];
1601
1579
  {
1602
- let entry = (__eli_iterator_1)["value"];
1603
- {
1604
- let path = module_id(host_get(entry, "path"));
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
- ((__eliscript_value_99) => { throw __eliscript_value_99; })(new (globalThis.TypeError)("compiler JavaScript module graph is required"));
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
- try {
1660
- while (__eliscript_truthy(advanceHostIterator(__eli_iterator_3))) {
1632
+ try {
1633
+ while (__eliscript_truthy(advanceHostIterator(__eli_iterator_3))) {
1634
+ {
1635
+ let module = (__eli_iterator_3)["value"];
1661
1636
  {
1662
- let module = (__eli_iterator_3)["value"];
1663
- {
1664
- let id = module_id(host_get(module, "id"));
1665
- let path = (resources)["pathFor"]((module)["path"]);
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
- ((__eliscript_value_102) => { throw __eliscript_value_102; })(new (globalThis.Error)("compiler entry is absent from its JavaScript module graph"));
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
- try {
1692
- while (__eliscript_truthy(advanceHostIterator(__eli_iterator_5))) {
1693
- {
1694
- let module = (__eli_iterator_5)["value"];
1695
- if ((!__eliscript_truthy((ids)["has"]((module)["id"])))) {
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
- try {
1715
- while (__eliscript_truthy(advanceHostIterator(__eli_iterator_7))) {
1716
- {
1717
- let path = (__eli_iterator_7)["value"];
1718
- if (__eliscript_truthy((new (globalThis.RegExp)((__eliscript_tdz_ready_5 === true ? script_path_pattern : __eliscript_tdz_error("script_path_pattern"))))["test"](path))) {
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 ((__eliscript_value_106) => { throw __eliscript_value_106; })(__eli_iteration_error_10);
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 ((__eliscript_value_107) => { throw __eliscript_value_107; })(new (globalThis.Error)("compiler session changed its requested host"));
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 ((__eliscript_value_108) => { throw __eliscript_value_108; })(error);
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
- ((__eliscript_value_109) => { throw __eliscript_value_109; })(new (globalThis.TypeError)("compiler literalSources must be an array"));
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
- try {
1801
- while (__eliscript_truthy(advanceHostIterator(__eli_iterator_11))) {
1764
+ try {
1765
+ while (__eliscript_truthy(advanceHostIterator(__eli_iterator_11))) {
1766
+ {
1767
+ let item = (__eli_iterator_11)["value"];
1802
1768
  {
1803
- let item = (__eli_iterator_11)["value"];
1804
- {
1805
- let id = module_id(host_get(item, "id"));
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"]))) || ((__eliscript_value_112, __eliscript_value_113) => (__eliscript_value_112 !== __eliscript_value_113))((((sourceIdentity)["literalSources"]) ?? []).length, ((literalAssets) ?? []).length)))) {
1824
- ((__eliscript_value_114) => { throw __eliscript_value_114; })(new (globalThis.Error)("compiler literal source inventory differs from its source identity"));
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
- ((__eliscript_value_115) => { throw __eliscript_value_115; })(new (globalThis.TypeError)("invalid compiler literal source asset"));
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 ((__eliscript_value_116) => { throw __eliscript_value_116; })(error);
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
- ((__eliscript_value_117) => { throw __eliscript_value_117; })(new (globalThis.TypeError)("compiler artifact has no runtime source asset"));
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 ((__eliscript_value_118) => { throw __eliscript_value_118; })(error);
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 ((__eliscript_value_119) => { throw __eliscript_value_119; })((((signal)["reason"] === undefined) ? new (globalThis.Error)("compiler bootstrap aborted") : (signal)["reason"]));
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
- ((__eliscript_value_120) => { throw __eliscript_value_120; })(new (globalThis.TypeError)("bootstrap host sequence must be nonempty"));
1881
+ ((__eliscript_value_112) => { throw __eliscript_value_112; })(new (globalThis.TypeError)("bootstrap host sequence must be nonempty"));
1920
1882
  }
1921
- if ((!(((options)["generations"] === undefined)) && ((__eliscript_value_121, __eliscript_value_122) => (__eliscript_value_121 !== __eliscript_value_122))((options)["generations"], (((options)["hosts"]) ?? []).length))) {
1922
- ((__eliscript_value_123) => { throw __eliscript_value_123; })(new (globalThis.TypeError)("generation count differs from host sequence"));
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
- ((__eliscript_value_124) => { throw __eliscript_value_124; })(new (globalThis.TypeError)("bootstrap generations must be positive"));
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
- ((__eliscript_value_125) => { throw __eliscript_value_125; })(new (globalThis.Error)("initial compiler has no recorded producer"));
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
- ((__eliscript_value_126) => { throw __eliscript_value_126; })(new (globalThis.TypeError)("bootstrap outputRoot is required"));
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
- ((__eliscript_value_127) => { throw __eliscript_value_127; })(new (globalThis.Error)("compiler build changed its requested target"));
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 ((__eliscript_value_128) => { throw __eliscript_value_128; })(__eli_iteration_error_14);
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 ((__eliscript_value_129) => (__eliscript_truthy(__eliscript_value_129) ? ((__eliscript_value_130) => (__eliscript_truthy(__eliscript_value_130) ? (comparisons)["every"](((item) => {
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
- })) : __eliscript_value_130))((((comparisons) ?? []).length === __eliscript_numeric_decrement(((records) ?? []).length))) : __eliscript_value_129))(__eliscript_numeric_relation(">=", ((records) ?? []).length, 3));
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 ((__eliscript_value_131) => { throw __eliscript_value_131; })(error);
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 ((__eliscript_value_132) => { throw __eliscript_value_132; })(error);
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
- ((__eliscript_value_133) => { throw __eliscript_value_133; })(new (globalThis.TypeError)("bootstrap outputRoot is required"));
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
- ((__eliscript_value_134) => { throw __eliscript_value_134; })(new (globalThis.TypeError)("independent bootstrap chains are required"));
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 ((__eliscript_value_135) => { throw __eliscript_value_135; })(error);
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 ((__eliscript_value_136) => { throw __eliscript_value_136; })(__eli_iteration_error_16);
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
- ((__eliscript_value_137) => { throw __eliscript_value_137; })(new (globalThis.TypeError)("compiler grid outputRoot is required"));
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
- return (() => {
2215
- try {
2216
- while (__eliscript_truthy(advanceHostIterator(__eli_iterator_17))) {
2176
+ try {
2177
+ while (__eliscript_truthy(advanceHostIterator(__eli_iterator_17))) {
2178
+ {
2179
+ let artifact = (__eli_iterator_17)["value"];
2217
2180
  {
2218
- let artifact = (__eli_iterator_17)["value"];
2219
- {
2220
- let host = normalizeCompilerHost(host_get(artifact, "host"));
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
- try {
2243
- while (__eliscript_truthy(advanceHostIterator(__eli_iterator_19))) {
2244
- {
2245
- let host = (__eli_iterator_19)["value"];
2246
- if ((!__eliscript_truthy((producers)["has"](host)))) {
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
- ((__eliscript_value_142) => { throw __eliscript_value_142; })(new (globalThis.Error)("compiler grid emitted a different host"));
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 ((__eliscript_value_143) => { throw __eliscript_value_143; })(error);
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 ((__eliscript_value_144) => { throw __eliscript_value_144; })(__eli_iteration_error_22);
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 ((__eliscript_value_145) => { throw __eliscript_value_145; })(__eli_iteration_error_24);
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
- try {
2366
- while (__eliscript_truthy(advanceHostIterator(__eli_iterator_25))) {
2321
+ try {
2322
+ while (__eliscript_truthy(advanceHostIterator(__eli_iterator_25))) {
2323
+ {
2324
+ let target = (__eli_iterator_25)["value"];
2367
2325
  {
2368
- let target = (__eli_iterator_25)["value"];
2369
- {
2370
- let cells = ((metadata)["cells"])["filter"](((cell) => {
2371
- return ((cell)["target"] === target);
2372
- }));
2373
- let identities = (cells)["map"](((cell) => {
2374
- return null_default(host_get(host_get((cell)["artifact"], "productIdentity"), "sha256"), null);
2375
- }));
2376
- let complete = ((__eliscript_value_146) => (__eliscript_truthy(__eliscript_value_146) ? (cells)["every"](((cell) => {
2377
- return (((cell)["status"] === "constructed") && ((cell)["execution"] === "initialized"));
2378
- })) : __eliscript_value_146))((((cells) ?? []).length === 3));
2379
- let status = ((__eliscript_truthy(complete) && __eliscript_truthy((identities)["every"](((identity) => {
2380
- return host_truthy(identity);
2381
- })))) ? (((new (globalThis.Set)(identities))["size"] === 1) ? "identical" : "different") : "unverified");
2382
- ((metadata)["comparisons"])["push"](({"target": target, "status": status, "identities": identities}));
2383
- if ((status === "identical")) {
2384
- (canonicalArtifacts)["push"]((artifacts)["find"](((artifact) => {
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 = ((__eliscript_value_148) => (__eliscript_truthy(__eliscript_value_148) ? ((__eliscript_value_149) => (__eliscript_truthy(__eliscript_value_149) ? (!__eliscript_truthy(host_truthy(host_get((metadata)["cleanupFailures"], "length")))) : __eliscript_value_149))(((metadata)["cells"])["every"](((cell) => {
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
- }))) : __eliscript_value_148))(((((metadata)["cells"]) ?? []).length === 9));
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 ((__eliscript_value_150) => { throw __eliscript_value_150; })(error);
2370
+ return ((__eliscript_value_140) => { throw __eliscript_value_140; })(error);
2417
2371
  }
2418
2372
  })());
2419
2373
  })());