You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
374 B

/*===
2
===*/
/* This had a bug, causing an assertion error in the debug build:
*
* PANIC 54: (build/401/duk_js_call.c:1753): assertion failed: nregs >= nargs (build/401/duk_js_call.c:1753)
*
* nregs was 1, nargs was 2.
*
* The release build would return undefined.
*/
function f(n,v) {
return v;
}
try {
print(f(1,2));
} catch (e) {
print(e.name);
}