mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
1317387: The intrinsic %ThrowTypeError% function should be frozen.
This commit is contained in:
parent
e3244802ec
commit
c956643d36
2 changed files with 38 additions and 0 deletions
16
js/src/tests/ecma_6/Function/throw-type-error.js
Normal file
16
js/src/tests/ecma_6/Function/throw-type-error.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Any copyright is dedicated to the Public Domain.
|
||||
// http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
const ThrowTypeError = function(){
|
||||
"use strict";
|
||||
return Object.getOwnPropertyDescriptor(arguments, "callee").get;
|
||||
}();
|
||||
|
||||
assertDeepEq(Object.getOwnPropertyDescriptor(ThrowTypeError, "length"), {
|
||||
value: 0, writable: false, enumerable: false, configurable: false
|
||||
});
|
||||
|
||||
assertEq(Object.isFrozen(ThrowTypeError), true);
|
||||
|
||||
if (typeof reportCompare == "function")
|
||||
reportCompare(true, true);
|
||||
Loading…
Add table
Add a link
Reference in a new issue