Closed Bug 1281359 Opened 8 years ago Closed 8 years ago

ECMAScript “self referential defaulting” should throw when no argument is provided

Categories

(Core :: JavaScript Engine, defect)

47 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sime.vidas, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160604131506

Steps to reproduce:

1. Go to https://jsbin.com/habumi/edit?js,console
2. Press Run button (upper right) if necessary 


Actual results:

The Console will produce “Runs successfully”.


Expected results:

The Console should have produced “Throws”.
Summary: “Self referential defaulting” should throw is no argument is provided → “Self referential defaulting” should throw when no argument is provided
Summary: “Self referential defaulting” should throw when no argument is provided → ECMAScript “self referential defaulting” should throw when no argument is provided
Related discussion on Twitter: https://mobile.twitter.com/bradleymeck/status/745269832669532160
Forgot to mention, I’ve tested in Chrome and Edge, and both produce “Throws”. I’m not sure what the correct behavior is according to the spec, but based on the Twitter disc. and browser majority, I’m assuming it should throw.
sounds like a related issue to bug 1022967
Status: UNCONFIRMED → NEW
Component: Untriaged → JavaScript Engine
Ever confirmed: true
Product: Firefox → Core
See Also: → 1022967
Fixed by bug 1263355.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.