You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ node --enable-source-maps main2.js
/.../main2.ts:24
throw new Error("abc");
^
Error: abc
at Object.<anonymous> (/.../main2.ts:24:7)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
at internal/main/run_main_module.js:17:47
But not on Deno:
$ deno --version
deno 1.25.3 (release, x86_64-unknown-linux-gnu)
v8 10.6.194.5
typescript 4.7.4
$deno run main2.js
error: Uncaught Error: abc
Warning Couldn't format source line: Line 24 is out of bounds (source may have changed at runtime)
at file:///.../main2.js:24:7
I also tested tsc --inlineSourceMap --inlineSources main2.ts, to the same effect.
Would it possible for Deno to handle arbitrary JS source maps? For example, from CoffeeScript?
The text was updated successfully, but these errors were encountered:
The code:
Is compiled with
tsc --inlineSourceMap main2.ts
to:It works on node:
But not on Deno:
I also tested
tsc --inlineSourceMap --inlineSources main2.ts
, to the same effect.Would it possible for Deno to handle arbitrary JS source maps? For example, from CoffeeScript?
The text was updated successfully, but these errors were encountered: