Closed Bug 420839 Opened 16 years ago Closed 12 years ago

DVG of |yield| expression seems to fail

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> for (let i in (function() { (yield 1).a=3 })()); 
typein:1: TypeError: (void 0) is undefined

Should be: TypeError: (yield 1) is undefined
Or maybe this is fine, and error messages are allowed to use uneval sometimes rather than decompiling an expression.
OS: Mac OS X → All
Hardware: x86 → All
js> for (let i in (function() { (yield 1).a=3 })()); 
typein:1:29 TypeError: undefined has no properties

Not great, but not wrong.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.