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.

16 lines
332 B

/*
* Built-in functions internal prototype is required to be the initial
* Function.prototype. This prevents Duktape/C functions from having
* an intermediate prototype providing a virtual 'length'.
*/
/*===
true
===*/
try {
print(Object.getPrototypeOf(Math.cos) === Function.prototype);
} catch (e) {
print(e);
}