Browse Source

Bug testcase for Array .push() fastpath bug

pull/1154/head
Sami Vaarala 8 years ago
parent
commit
88f20fc411
  1. 19
      tests/ecmascript/test-bug-array-fastpath-push-retval.js

19
tests/ecmascript/test-bug-array-fastpath-push-retval.js

@ -0,0 +1,19 @@
/*
* https://github.com/svaarala/duktape/pull/1154
*/
/*===
number 5
===*/
function test() {
var arr = [ 1, 2, 3 ];
var ret = arr.push('foo', 'bar');
print(typeof ret, ret);
}
try {
test();
} catch (e) {
print(e.stack || e);
}
Loading…
Cancel
Save