Closed
Bug 1110886
Opened 10 years ago
Closed 4 years ago
Strict mode Function.caller accessor undefined
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: james.keane, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0 Build ID: 20141127111021 Steps to reproduce: var fn = function() { "use strict"; }; var throwTypeError = Object.getOwnPropertyDescriptor(fn, 'caller').get; Actual results: Object.getOwnPropertyDescriptor(fn, 'caller') is null. Expected results: As per https://bugzilla.mozilla.org/show_bug.cgi?id=514581 and "js/src/tests/test262/ch13/13.2/S13.2.3_A1.js" _and_ http://people.mozilla.org/~jorendorff/es6-draft.html#sec-%throwtypeerror% Function.caller should be [[ThrowTypeError]]
Comment 1•10 years ago
|
||
I think this is intended to be compat with expected ES6.
Reporter | ||
Comment 2•10 years ago
|
||
"The spec doesn't really anticipate this approach, but what you're implementing here seems clearly better than the spec --- Web compat permitting." https://bugzilla.mozilla.org/show_bug.cgi?id=969478
Comment 3•10 years ago
|
||
See https://bugs.ecmascript.org/show_bug.cgi?id=3113
Comment 5•4 years ago
|
||
Per Bug 1615704, this is Working as intended. The relevant accessor is inherited from Function.prototype
.
Flags: needinfo?(evilpies)
Updated•4 years ago
|
Blocks: 1615704
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(evilpies)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•