Skip to content

Commit f29b01e

Browse files
committed
Don't worry if some browsers have less accurate stacks
1 parent b0d4319 commit f29b01e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/parallel/test-assert-fail-deprecation.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ assert.throws(() => {
5959
expected: 'second'
6060
});
6161

62-
// The stackFrameFunction should exclude the foo frame
63-
assert.throws(
64-
function foo() { assert.fail('first', 'second', 'message', '!==', foo); },
65-
(err) => !/^\s*at\sfoo\b/m.test(err.stack)
66-
);
62+
// [broserify] Don't worry if some browsers have less accurate stacks
63+
// // The stackFrameFunction should exclude the foo frame
64+
// assert.throws(
65+
// function foo() { assert.fail('first', 'second', 'message', '!==', foo); },
66+
// (err) => !/^\s*at\sfoo\b/m.test(err.stack)
67+
// );

0 commit comments

Comments
 (0)