Issue 1:
The code:

const a = (
it: [
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string,
string
]
) => it;

throw new Error("abc");

Is compiled with tsc --inlineSourceMap main2.ts to:

var a = function (it) { return it; };
throw new Error("abc");
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbjIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJtYWluMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxJQUFNLENBQUMsR0FBRyxVQUNSLEVBbUJDLElBQ0UsT0FBQSxFQUFFLEVBQUYsQ0FBRSxDQUFDO0FBRVIsTUFBTSxJQUFJLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQyJ9

It works on node:

$ 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?

Issue 2:
Using Deno 1.23.0, when I have deno.test cases and deno.bench benches in the same file, in this case it's called strip-comments_test.ts

deno bench --no-check --unstable strip-comments_test.ts

works as expected

whereas

deno test --no-check --unstable strip-comments_test.ts

throws

Uncaught error from ./strip-comments_test.ts FAILED

ERRORS

./strip-comments_test.ts (uncaught error)
error: TypeError: ops[opName] is not a function
Deno.bench("strip-comments", () => {
^
at Object.opSync (deno:core/01_core.js:170:38)
at Object.bench (deno:runtime/js/40_testing.js:672:10)
at file:///Users/Can/Projects/Konduktum/Konduktum-2022/konduktum-remix-deno/strip-comments_test.ts:134:6
This error was not caught from a test and caused the test runner to fail on the referenced module.
It most likely originated from a dangling promise, event/timeout handler or top-level code.

FAILURES

./strip-comments_test.ts (uncaught error)

FAILED | 0 passed | 1 failed (261ms)

example file for reproduction

// mentioned in https://github.com/unocss/unocss/issues/1139#issuecomment-1163635346
import { assertEquals } from "https://deno.land/std@0.144.0/testing/asserts.ts";
import { default as stripComments } from "https://esm.sh/strip-comments@2.0.1?no-check";
import { stripLiteral } from "https://esm.sh/strip-literal@0.4.0";

const code = `bla original`;

const expected = `the expected`;

Deno.test("strip-comments", () => {
assertEquals(stripComments(code), expected);
});
Deno.test("strip-literal", () => {
assertEquals(stripLiteral(code), expected);
});

Deno.bench("strip-comments", () => {
stripComments(code.repeat(100));
});
Deno.bench("strip-literal", () => {
stripLiteral(code.repeat(100));
});

Also, no matter if I'm in a _test.ts or _bench.ts file I get

Property 'bench' does not exist on type 'typeof Deno'.deno-ts(2339)

in VSCode even though the status bar at the bottom correctly show Deno 1.23.0 and I've got "deno.enable": true in .vscode/settings.json

For reference I asked on Discord first if this should be supported