diff options
Diffstat (limited to 'js/src/tests/non262/Function/Function-prototype.js')
-rw-r--r-- | js/src/tests/non262/Function/Function-prototype.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/tests/non262/Function/Function-prototype.js b/js/src/tests/non262/Function/Function-prototype.js new file mode 100644 index 0000000000..218b1d54ca --- /dev/null +++ b/js/src/tests/non262/Function/Function-prototype.js @@ -0,0 +1,11 @@ +var desc = Object.getOwnPropertyDescriptor(Function.prototype, "length"); +assertDeepEq(desc, + {value: 0, writable: false, enumerable: false, configurable: true}); + +assertEq(Function.prototype.prototype, undefined); +assertEq(Function.prototype.callee, undefined); +assertThrowsInstanceOf(() => Function.prototype.caller, TypeError); +assertThrowsInstanceOf(() => Function.prototype.arguments, TypeError); + +if (typeof reportCompare === "function") + reportCompare(true, true); |