node/test/fixtures/source-map/babel-esm-original.mjs
bcoe e1e2f669f6
process: add source-map support to stack traces
PR-URL: https://github.com/nodejs/node/pull/29564
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-10-05 17:08:00 -07:00

9 lines
126 B
JavaScript

import {foo} from './esm-dep.mjs';
const obj = {
a: {
b: 22
}
};
if (obj?.a?.b === 22) throw Error('an exception');