Skip to content

Commit cce8165

Browse files
author
homyakov
committed
2 parents 7f2f70b + 9a6d2d8 commit cce8165

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/TestStacktrace.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,10 @@
420420
for (var i = 0; i < e.length; i++) {
421421
var message = pst.opera10a(e[i]);
422422
//equals(message.join("\n"), 'debug', 'debug');
423-
equals(message.length, 7, 'number of stack entries');
424-
equals(message[0].indexOf('this.undef()') >= 0, true, 'this.undef() is at the top of stack');
423+
// NOTE: the important thing here is that the user sees calls to bar and foo in the correct order
424+
// We cannot test the size of the stack because it's inconsistent
425+
equals(message[message.length - 3].indexOf('bar(') >= 0, true, 'bar is 3nd from the bottom of stack');
426+
equals(message[message.length - 2].indexOf('bar(2)') >= 0, true, 'bar is 2nd from the bottom of stack');
425427
equals(message[message.length - 1].indexOf('foo()') >= 0, true, 'foo() is at the bottom of stack');
426428
}
427429
});

0 commit comments

Comments
 (0)