mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-13 02:16:52 +02:00
CallExpression is accepted as an assignment target for web compatibility (Annex B), but must throw ReferenceError at runtime. We were incorrectly throwing TypeError with a TODO message. Replace emit_todo() calls in three codegen paths (simple assignment, compound assignment/update, and for-in/of) with proper ReferenceError using the "Invalid left-hand side in assignment" message, matching the behavior of V8 and JSC.
80 KiB
80 KiB