From 209ccdb79504e03c602bbbfa095847e44198a407 Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Sat, 3 Oct 2026 05:06:49 -0500 Subject: [PATCH] Update codec diagnostics for encodeInto support --- tests/harness/__snapshots__/text-codec-value.ts.txt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/harness/__snapshots__/text-codec-value.ts.txt b/tests/harness/__snapshots__/text-codec-value.ts.txt index 2d4c0f2e2..296120424 100644 --- a/tests/harness/__snapshots__/text-codec-value.ts.txt +++ b/tests/harness/__snapshots__/text-codec-value.ts.txt @@ -5,15 +5,6 @@ text-codec-value.ts:2:13 - error SC1090: console.log of 'TextEncoder' values (Te | ^~~~~~~ 3 | -text-codec-value.ts:10:1 - error SC2020: 'TextEncoder.encodeInto' is part of the standard library types but has no scriptc lowering yet - - 9 | new TextDecoder("utf-8", { fatal: true }); - 10 | encoder.encodeInto("hello", new Uint8Array(10)); - | ^~~~~~~~~~~~~~~~~~ - 11 | const forged = JSON.parse("{}") as TextDecoder; - - hint: TextEncoder instances can be stored, passed, and captured; encode(string) and encode() compile, while encodeInto and other members have no static lowering - text-codec-value.ts:17:5 - error SC2020: 'uninitialized lexical codec bindings' is part of the standard library types but has no scriptc lowering yet 16 | var varEncoder = new TextEncoder();