mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
8 years ago
1 changed files with 19 additions and 0 deletions
@ -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…
Reference in new issue