Closed Bug 1324208 Opened 9 years ago Closed 9 years ago

Remove strict arguments poison pill for "caller" property

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file, 1 obsolete file)

https://github.com/tc39/ecma262/pull/689 This let us get rid of the caller checks in UnmappedArgumentsObject::obj_resolve and UnmappedArgumentsObject::obj_enumerate.
Attached patch bug1324208.patch (obsolete) — Splinter Review
JSC and V8 [1,2] already removed the poison pill for strict arguments "caller". [1] https://bugs.webkit.org/show_bug.cgi?id=164859 [2] https://bugs.chromium.org/p/v8/issues/detail?id=5535
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #8821554 - Flags: review?(evilpies)
Comment on attachment 8821554 [details] [diff] [review] bug1324208.patch Review of attachment 8821554 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! ::: js/src/tests/ecma_5/Function/arguments-caller-callee.js @@ +31,5 @@ > } > } > > function bar() { "use strict"; return arguments; } > +bar().caller; // No error when accessing arguments.caller in ES2017+ I think this becomes more obvious after changing this to assertEq(bar().caller, undefined)
Attachment #8821554 - Flags: review?(evilpies) → review+
Attached patch bug1324208.patchSplinter Review
Updated per review comments, carrying r+ from evilpie.
Attachment #8821554 - Attachment is obsolete: true
Attachment #8822177 - Flags: review+
Keywords: checkin-needed
Pushed by ihsiao@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/132fd6c77441 Remove strict arguments poison pill for "caller" property per ES2017. r=evilpie
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: