node/test/fixtures/source-map/throw-on-require.js
bcoe 8fa90358d7
module: refactor to use iterable-weak-map
Using an iterable WeakMap (a data-structure that uses WeakRef and
WeakMap), we are able to: stop relying on Module._cache to
serialize source maps; stop requiring an error object when calling
findSourceMap().

PR-URL: https://github.com/nodejs/node/pull/35915
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2020-11-06 12:47:23 -08:00

15 lines
No EOL
331 B
JavaScript

var ATrue;
(function (ATrue) {
ATrue[ATrue["IsTrue"] = 1] = "IsTrue";
ATrue[ATrue["IsFalse"] = 0] = "IsFalse";
})(ATrue || (ATrue = {}));
if (false) {
console.info('unreachable');
}
else if (true) {
throw Error('throw early');
}
else {
console.info('unreachable');
}
//# sourceMappingURL=throw-on-require.js.map