We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c80f15 commit e06c75cCopy full SHA for e06c75c
src/repl.js
@@ -7,6 +7,15 @@ const { processTopLevelAwait } = require('./await');
7
const { Runtime, mainContextIdPromise } = require('./inspector');
8
const { strEscape, isIdentifier } = require('./util');
9
10
+// TODO(devsnek): make more robust
11
+Error.prepareStackTrace = (err, frames) => {
12
+ const cut = frames.findIndex((f) =>
13
+ !f.getFileName() && !f.getFunctionName()) + 1;
14
+
15
+ return `${err}
16
+ at ${frames.slice(0, cut).join('\n at ')}`;
17
+};
18
19
const inspect = (v) => util.inspect(v, { colors: true, showProxy: 2 });
20
21
// https://cs.chromium.org/chromium/src/third_party/blink/renderer/devtools/front_end/sdk/RuntimeModel.js?l=60-78&rcl=faa083eea5586885cc907ae28928dd766e47b6fa
0 commit comments