mirror of https://github.com/svaarala/duktape.git
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.
23 lines
301 B
23 lines
301 B
|
|
/*===
|
|
|
|
1 2
|
|
===*/
|
|
|
|
/* Basic cases */
|
|
print.call(null);
|
|
print.call(null,1,2);
|
|
|
|
/*===
|
|
TypeError
|
|
===*/
|
|
|
|
/* Contrived case where E5 Section 15.3.4.4 step 1 should cause TypeError */
|
|
|
|
try {
|
|
({ "call": Function.prototype.call }).call();
|
|
} catch (e) {
|
|
print(e.name);
|
|
}
|
|
|
|
/* FIXME: thisArg handling */
|
|
|