@scriptc/compiler 0.0.17 → 0.0.18

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 (51) hide show
  1. package/ambient/scriptc-node-fallback.d.ts +4 -4
  2. package/dist/backend/cc.d.ts +5 -0
  3. package/dist/backend/cc.js +2 -0
  4. package/dist/backend/cc.js.map +1 -1
  5. package/dist/backend/emission/emit-async.js +35 -2
  6. package/dist/backend/emission/emit-async.js.map +1 -1
  7. package/dist/backend/emission/emit-exprs.js +40 -4
  8. package/dist/backend/emission/emit-exprs.js.map +1 -1
  9. package/dist/backend/emission/emitter.js +69 -11
  10. package/dist/backend/emission/emitter.js.map +1 -1
  11. package/dist/backend/emission/may-throw.d.ts +3 -3
  12. package/dist/backend/emission/may-throw.js +15 -4
  13. package/dist/backend/emission/may-throw.js.map +1 -1
  14. package/dist/backend/llvm/emitter.js +199 -21
  15. package/dist/backend/llvm/emitter.js.map +1 -1
  16. package/dist/frontend/lowering/lower-builtins.js +4 -7
  17. package/dist/frontend/lowering/lower-builtins.js.map +1 -1
  18. package/dist/frontend/lowering/lower-calls.js +17 -9
  19. package/dist/frontend/lowering/lower-calls.js.map +1 -1
  20. package/dist/frontend/lowering/lower-containers.d.ts +22 -17
  21. package/dist/frontend/lowering/lower-containers.js +628 -51
  22. package/dist/frontend/lowering/lower-containers.js.map +1 -1
  23. package/dist/frontend/lowering/lower-exprs.js +19 -1
  24. package/dist/frontend/lowering/lower-exprs.js.map +1 -1
  25. package/dist/frontend/lowering/lower-island.js +55 -7
  26. package/dist/frontend/lowering/lower-island.js.map +1 -1
  27. package/dist/frontend/lowering/lower-modules.js +144 -10
  28. package/dist/frontend/lowering/lower-modules.js.map +1 -1
  29. package/dist/frontend/lowering/lower-stmts.d.ts +8 -0
  30. package/dist/frontend/lowering/lower-stmts.js +408 -21
  31. package/dist/frontend/lowering/lower-stmts.js.map +1 -1
  32. package/dist/frontend/lowering/lowerer.d.ts +38 -0
  33. package/dist/frontend/lowering/lowerer.js +149 -2
  34. package/dist/frontend/lowering/lowerer.js.map +1 -1
  35. package/dist/frontend/lowering/surfaces.js +4 -0
  36. package/dist/frontend/lowering/surfaces.js.map +1 -1
  37. package/dist/index.js +5 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/ir/nodes.d.ts +46 -12
  40. package/dist/ir/nodes.js +41 -0
  41. package/dist/ir/nodes.js.map +1 -1
  42. package/dist/ir/serialize.d.ts +1 -1
  43. package/dist/ir/serialize.js +1 -1
  44. package/dist/ir/validate.js +98 -39
  45. package/dist/ir/validate.js.map +1 -1
  46. package/dist/library/int-infer.js +191 -25
  47. package/dist/library/int-infer.js.map +1 -1
  48. package/dist/library/int-infer.test.js +206 -1
  49. package/dist/library/int-infer.test.js.map +1 -1
  50. package/package.json +2 -2
  51. package/surface-manifest.json +25 -1
@@ -4907,16 +4907,13 @@ export function lowerProcessMethodCall(L, call, access) {
4907
4907
  const SIGNALS = { SIGINT: 2, SIGTERM: 15 };
4908
4908
  const signo = event !== null ? own(SIGNALS, event) : undefined;
4909
4909
  // 'unhandledRejection': the listener crosses as a dyn function and
4910
- // the loop-end report dispatches it (reason, promise) per
4910
+ // the completed-checkpoint report dispatches it (reason, promise) per
4911
4911
  // never-observed rejection instead of printing and exiting 1
4912
- // (scr_async.c; the end-of-turn timing is a SEMANTICS.md
4913
- // divergence). `once` auto-removes after one delivery and
4912
+ // (scr_async.c). `once` auto-removes after one delivery and
4914
4913
  // `off`/`removeListener` remove by closure identity — the warning
4915
4914
  // registry's story. 'rejectionHandled' is the sibling registry:
4916
- // under the loop-exhaustion model its ONE firing window is a
4917
- // handler attached during an unhandledRejection listener (earlier
4918
- // handling never enters the report at all — the same documented
4919
- // divergence), dispatched synchronously with the promise.
4915
+ // a handler attached after delivery fires it once, synchronously
4916
+ // with the promise.
4920
4917
  if (event === "unhandledRejection" || event === "rejectionHandled") {
4921
4918
  if (!ts.isExpressionStatement(call.parent)) {
4922
4919
  L.unsupported("SC1090", call, "chaining process listener registration (the result is void here — register each listener as its own statement)");