Issue 44: return value handling odd
http://code.google.com/p/v8/issues/detail?id=44

Comment #2 by [EMAIL PROTECTED]:
When evaluating { foo: 12 } it is evaluated as a block of code with a  
labeled
statement.  Therefore, the result is 12 and not an object with a foo  
property.
Similarly, { foo:12, bar:13 } is evaluated as a block of code which  
contains a syntax
error.

I agree that this is confusing, but it is the correct behavior.


Issue attribute updates:
        Status: WorkingAsIntended

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to