Bug 108873 - The [[ThrowTypeError]] function object must not be extensible
Summary: The [[ThrowTypeError]] function object must not be extensible
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Trivial
Assignee: Alexey Shvayka
URL:
Keywords: InRadar, WebExposed
Depends on:
Blocks:
 
Reported: 2013-02-04 15:58 PST by André Bargull
Modified: 2020-08-22 15:26 PDT (History)
12 users (show)

See Also:


Attachments
Patch (4.51 KB, patch)
2020-08-22 13:00 PDT, Alexey Shvayka
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>