1317387: The intrinsic %ThrowTypeError% function should be frozen.

This commit is contained in:
Gaming4JC 2019-07-07 20:36:27 -04:00 committed by Roy Tam
commit c956643d36
2 changed files with 38 additions and 0 deletions

View 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);