Skip to content

Commit 070005f

Browse files
Update src/compiler/sourcemap.ts
1 parent 4b516f5 commit 070005f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/sourcemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ namespace ts {
305305

306306
function toJSON(): RawSourceMap {
307307
commitPendingMapping();
308-
const mappings = (lastMappings ??= decoder.decode(mappingsBuffer.slice(0, mappingsPos)));
308+
const mappings = (lastMappings ??= decoder.decode(mappingsBuffer.subarray(0, mappingsPos)));
309309
return {
310310
version: 3,
311311
file,

0 commit comments

Comments
 (0)