Open Bug 1169894 Opened 10 years ago Updated 8 months ago

Make f() = foo an error

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

Tracking Status
firefox41 --- affected

People

(Reporter: Ms2ger, Unassigned)

References

(Blocks 1 open bug, )

Details

We do this in strict mode only (which I'm told might be matched by JSC); V8 doesn't appear to do it at all. It's not clear to me if this is ever going to be web-compatible, or if we should push back on the spec instead.
JSC (rev 184958), V8 (master, ab0577b29c3d7cf0c451a3ecb7f85e87d8d8d160), and Edge (build 10122) don't yet report an early error for assignments to a call expression (tested non-strict and strict mode).
See Also: → 609756
Severity: normal → S3

Is this still an issue?

Flags: needinfo?(Ms2ger)

Still an issue; https://github.com/tc39/ecma262/pull/2193 has the discussion on the spec side.

Flags: needinfo?(Ms2ger)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.