Phabricator will be unavailable due to database maintenance from 14:00 UTC until 18:00 UTC on Saturday, October 13, 2018.
Bugzilla will remain up during this time. All users have been logged out of Bugzilla

Remove strict arguments poison pill for "caller" property

RESOLVED FIXED in Firefox 53

Status

()

RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: anba, Assigned: anba)

Tracking

Trunk
mozilla53
Points:
---

Firefox Tracking Flags

(firefox53 fixed)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

2 years ago
https://github.com/tc39/ecma262/pull/689

This let us get rid of the caller checks in UnmappedArgumentsObject::obj_resolve and UnmappedArgumentsObject::obj_enumerate.
(Assignee)

Comment 1

2 years ago
Created attachment 8821554 [details] [diff] [review]
bug1324208.patch

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+
(Assignee)

Comment 3

2 years ago
Created attachment 8822177 [details] [diff] [review]
bug1324208.patch

Updated per review comments, carrying r+ from evilpie.
Attachment #8821554 - Attachment is obsolete: true
Attachment #8822177 - Flags: review+
(Assignee)

Updated

2 years ago
Keywords: checkin-needed

Comment 5

2 years ago
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

Comment 6

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/132fd6c77441
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
status-firefox53: affected → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.