Browse Source

Bug testcase for GH-1554

pull/1557/head
Sami Vaarala 8 years ago
parent
commit
26e8dfa835
  1. 23
      tests/ecmascript/test-bug-tailcall-in-constructor-gh1554.js

23
tests/ecmascript/test-bug-tailcall-in-constructor-gh1554.js

@ -0,0 +1,23 @@
/*===
object
===*/
function replacement() {
//console.trace();
return null;
}
function MyConstructor() {
return replacement();
}
function test() {
var O = new MyConstructor();
print(typeof O);
}
try {
test();
} catch (e) {
print(e.stack || e);
}
Loading…
Cancel
Save