Bug 108873

Summary: The [[ThrowTypeError]] function object must not be extensible
Product: WebKit Reporter: André Bargull <andre.bargull>
Component: JavaScriptCoreAssignee: Alexey Shvayka <ashvayka>
Status: RESOLVED FIXED    
Severity: Trivial CC: ashvayka, erights, ews-watchlist, ggaren, keith_miller, mark.lam, msaboff, oliver, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description André Bargull 2013-02-04 15:58:13 PST
See ECMAScript 5.1 [13.2.3] "The [[ThrowTypeError]] Function Object", the [[Extensible]] internal property of the [[ThrowTypeError]] is set to `false`. 

test case:
---
(function() {
  var throwTypeError = Object.getOwnPropertyDescriptor(function(){"use strict"}, "caller").get;
  return Object.isExtensible(throwTypeError);
})()
---

Actual: `Object.isExtensible(throwTypeError)` returns `true`
Expected: `Object.isExtensible(throwTypeError)` returns `false`
Comment 1 Mark S. Miller 2014-05-11 11:12:22 PDT
What is the status of this issue?
Comment 2 Alexey Shvayka 2020-08-22 13:00:31 PDT
Created attachment 407056 [details]
Patch
Comment 3 Yusuke Suzuki 2020-08-22 13:11:32 PDT
Comment on attachment 407056 [details]
Patch

r=me
Comment 4 EWS 2020-08-22 15:25:39 PDT
Committed r266036: <https://trac.webkit.org/changeset/266036>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 407056 [details].
Comment 5 Radar WebKit Bug Importer 2020-08-22 15:26:15 PDT
<rdar://problem/67624970>