@scriptc/compiler 0.0.15 → 0.0.16
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/ambient/scriptc-node-fallback.d.ts +5 -5
- package/dist/backend/cc.d.ts +4 -2
- package/dist/backend/cc.js +24 -7
- package/dist/backend/cc.js.map +1 -1
- package/dist/backend/emission/emit-exprs.js +1 -1
- package/dist/backend/emission/emit-exprs.js.map +1 -1
- package/dist/frontend/lowering/lower-builtins.js +6 -6
- package/dist/frontend/lowering/lower-builtins.js.map +1 -1
- package/dist/ir/nodes.d.ts +6 -6
- package/package.json +2 -2
- package/surface-manifest.json +1 -1
|
@@ -4758,10 +4758,10 @@ export function lowerProcessMethodCall(L, call, access) {
|
|
|
4758
4758
|
return null;
|
|
4759
4759
|
// process.stdout.write(s) / process.stderr.write(s): the raw byte
|
|
4760
4760
|
// write — no newline, no formatting. stdout shares console.log's
|
|
4761
|
-
// stream
|
|
4762
|
-
//
|
|
4763
|
-
//
|
|
4764
|
-
//
|
|
4761
|
+
// promptly-submitted stream, preserving source order. Node's boolean
|
|
4762
|
+
// is a backpressure signal; this synchronous write is constantly true.
|
|
4763
|
+
// @types/node's wider forms (Buffer data, encoding, callback) typecheck
|
|
4764
|
+
// and fence here.
|
|
4765
4765
|
// process.stdin.destroy(): a deliberate no-op — no stream machinery
|
|
4766
4766
|
// exists to tear down, and no other stdin surface observes the
|
|
4767
4767
|
// destroyed state (SEMANTICS.md documents it).
|
|
@@ -4857,8 +4857,8 @@ export function lowerProcessMethodCall(L, call, access) {
|
|
|
4857
4857
|
if (data.type.kind === "dyn" && isJsSourceFile(call.getSourceFile())) {
|
|
4858
4858
|
data = { kind: "dynCheck", value: data, type: STRING, loc };
|
|
4859
4859
|
}
|
|
4860
|
-
// The Buffer overload writes
|
|
4861
|
-
// streams
|
|
4860
|
+
// The Buffer overload writes raw bytes through the same promptly
|
|
4861
|
+
// submitted streams.
|
|
4862
4862
|
if (data.type.kind === "bytes" && data.type.elem === "u8") {
|
|
4863
4863
|
return {
|
|
4864
4864
|
kind: "libCall",
|