Skip to content

Commit be2477b

Browse files
committed
WORKAROUND for a v8 bug
Error objects retrain all scopes in the stacktrace
1 parent dffedcc commit be2477b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/TestCases.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ describe("TestCases", () => {
204204
const test = new Test(title, fn);
205205
suite.addTest(test);
206206
exportedTest++;
207+
// WORKAROUND for a v8 bug
208+
// Error objects retrain all scopes in the stacktrace
209+
test._trace = test._trace.message;
210+
207211
return test;
208212
}
209213

0 commit comments

Comments
 (0)