Repository: node
Issue: Source map working in Chrome, but not in Node
Labels: source maps

### Version

22.5.1

### Platform

```text
Microsoft Windows NT 10.0.19045.0 x64
```


### Subsystem

_No response_

### What steps will reproduce the bug?

```js
eval(`'use strict';

function get(o, p) {
    return apply(weakMapGet, p, [o]);
}

function set(o, p, v) {
    apply(weakMapSet, p, [o, v]);
    return v;
}

function call(o, p, args) {
    return apply(get(o, p), o, args);
}

function mark(o, p) {
    apply(weakSetAdd, p, [o]);
}

function has(o, p) {
    return apply(weakSetHas, p, [o]);
}

function getMisc(k) {
    return apply(mapGet, misc, [k]);
}

function setMisc(k, v) {
    apply(mapSet, misc, [k, v]);
}

const apply = Function.prototype.call.bind(Function.prototype.apply);

const { get: weakMapGet, set: weakMapSet, delete: weakMapDelete } = WeakMap.prototype;
const { get: mapGet, set: mapSet } = Map.prototype;
const { add: weakSetAdd, has: weakSetHas } = WeakSet.prototype;

const misc = new Map();
const internal23839 = new WeakMap();
const internal23840 = new WeakMap();
const internal23831 = new WeakSet();

let { console: console_1, Array: Array_1, TypeError: TypeError_1, Symbol: Symbol_1, Error: Error_1 } = globalThis, { log: log_1 } = console_1, { isArray: isArray_1 
} = Array_1;
let { push: push_1 } = Array_1.prototype;
const { get: get_length_1 = function () { return this.length; }, set: set_length_1 = function (value) { return this.length = value; } } = Reflect.getOwnPropertyDescriptor(Array_1.prototype) ?? {};
apply(log_1, console_1, ["initialize"]);
class Test {
    constructor() {
        if (arguments[0] !== getMisc(23831))
            throw new TypeError_1("Illegal constructor");
        mark(this, internal23831);
        set(this, internal23839, function callStaticMethod() {
            apply(log_1, console_1, [apply(isArray_1, Array_1, [[]]), isArray_1]);
            equal(apply(isArray_1, Array_1, [[]]), true);
        });
        set(this, internal23840, function callMethod() {
            const array = [];
            apply(push_1, array, [123]);
            equal(apply(get_length_1, array), 1);
        });
    }
    callStaticMethod() {
        if (!has(this, internal23831))
            throw new TypeError_1("Illegal invocation");
        if (arguments.length < 0)
            throw new TypeError_1("Failed to execute 'callStaticMethod' on 'Test': 0 arguments required, but only " + arguments.length + " present.");
        return call(this, internal23839, []);
    }
    callMethod() {
        if (!has(this, internal23831))
            throw new TypeError_1("Illegal invocation");
        if (arguments.length < 0)
            throw new TypeError_1("Failed to execute 'callMethod' on 'Test': 0 arguments required, but only " + arguments.length + " present.");
        return call(this, internal23840, []);
    }
}
setMisc(23831, Symbol_1());
const object = new Test(getMisc(23831));
throw new Error_1('hello');

exports.object = object;

${"//#"} sourceURL=index.ts
${"//#"} sourceMappingURL=data:application/javascript;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNZLFNBQUEsR0FBQSxDQUFBLENBQUEsRUFBQSxDQUFBLEVBQUEsQ0FBQSxFQUFBO0FBR0EsSUFBQSxLQUFNLENBQUksVUFBQSxFQUFBLENBQUEsRUFBQSxDQUFBLENBQUEsRUFBQSxDQUFBLENBQUEsQ0FBQSxDQUFBOzs7O1NBSUwsSUFBQSxDQUFBLENBQUEsRUFBQSxDQUFBLEVBQUEsSUFBQSxFQUFBOzs7O2FBS0csQ0FBQSxDQUFBLEVBQUssQ0FBQSxFQUFBO1NBQ1IsQ0FBQSxVQUFBLEVBQUEsQ0FBQSxFQUFBLENBQUEsQ0FBQSxDQUFBLENBQUEsQ0FBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFiTCxLQUFBLENBQUEsS0FBQSxFQUFBLFNBQUEsRUFBQSxDQUFZLFlBQVksQ0FBQSxDQUFBLENBQUU7QUFHMUIsTUFBTSxJQUFJLENBQUE7Ozs7OztZQUVGLEtBQUEsQ0FBQSxLQUFBLEVBQUEsU0FBQSxFQUFBLENBQUEsS0FBQSxDQUFBLFNBQUEsRUFBQSxPQUFBLEVBQUEsQ0FBMEIsRUFBRSxDQUFBLENBQUEsRUFBQSxTQUFBLENBQUEsQ0FBQSxDQUFrQjtZQUM5QyxLQUFLLENBQUEsS0FBQSxDQUFBLFNBQUEsRUFBQSxPQUFBLEVBQUEsQ0FBZSxFQUFFLENBQUEsQ0FBQSxFQUFHLElBQUksQ0FBQyxDQUFDO1NBQ2xDLENBQUEsQ0FBQTs7WUFHRyxNQUFNLEtBQUssR0FBVSxFQUFFLENBQUM7WUFDeEIsS0FBQSxDQUFBLE1BQUEsRUFBQSxLQUFLLEVBQUEsQ0FBTSxHQUFHLENBQUEsQ0FBQSxDQUFFO1lBQ2hCLEtBQUssQ0FBQSxLQUFBLENBQUEsWUFBQSxFQUFDLEtBQUssQ0FBQSxFQUFTLENBQUMsQ0FBQyxDQUFDO1NBQzFCLENBQUEsQ0FBQTs7SUFURCxnQkFBZ0IsR0FBQTs7Ozs7OztJQUtoQixVQUFVLEdBQUE7Ozs7Ozs7Q0FLYjs7QUFFTSxNQUFNLE1BQU0sR0FBRyxJQUFJLElBQUksQ0FBQSxPQUFBLENBQUEsS0FBQSxDQUFBLEVBQUc7QUFFakMsTUFBTSxJQUFBLE9BQUEsQ0FBVSxPQUFPLENBQUMiLCJzb3VyY2VzQ29udGVudCI6W251bGxdfQ==`);
```

### How often does it reproduce? Is there a required condition?

Always.

### What is the expected behavior? Why is that the expected behavior?

Traceback from Chrome:
```
Uncaught Error: hello
    at eval (index.ts:20:37)
    at <anonymous>:1:1
```

### What do you see instead?

Traceback from Node:
```
Uncaught Error: hello
    at eval (index.ts:80:7)
```

### Additional information

_No response_