Browse Source

test: make tests work with newer v8

v0.9.6-release
Fedor Indutny 12 years ago
parent
commit
8a96bb42c6
  1. 10
      test/message/stack_overflow.out
  2. 2
      test/simple/test-util-inspect.js

10
test/message/stack_overflow.out

@ -4,3 +4,13 @@ before
function stackOverflow() {
^
RangeError: Maximum call stack size exceeded
at stackOverflow (*test/message/stack_overflow.js:31:23)
at stackOverflow (*test/message/stack_overflow.js:32:3)
at stackOverflow (*test/message/stack_overflow.js:32:3)
at stackOverflow (*test/message/stack_overflow.js:32:3)
at stackOverflow (*test/message/stack_overflow.js:32:3)
at stackOverflow (*test/message/stack_overflow.js:32:3)
at stackOverflow (*test/message/stack_overflow.js:32:3)
at stackOverflow (*test/message/stack_overflow.js:32:3)
at stackOverflow (*test/message/stack_overflow.js:32:3)
at stackOverflow (*test/message/stack_overflow.js:32:3)

2
test/simple/test-util-inspect.js

@ -77,8 +77,6 @@ var ex = util.inspect(new Error('FAIL'), true);
assert.ok(ex.indexOf('[Error: FAIL]') != -1);
assert.ok(ex.indexOf('[stack]') != -1);
assert.ok(ex.indexOf('[message]') != -1);
assert.ok(ex.indexOf('[arguments]') != -1);
assert.ok(ex.indexOf('[type]') != -1);
// GH-1941
// should not throw:

Loading…
Cancel
Save