Status: New
Owner: ----
New issue 3703 by [email protected]: Creating an own property on a
coerced primitive object does not throw a TypeError exception in a strict
mode
https://code.google.com/p/v8/issues/detail?id=3703
In a strict mode, it should throw a TypeError exception, when attempting to
create an own property on a coerced primitive object, but v8 does not.
According to ES5, Section 8.7.2 PutValue (V, W), [[Put]] internal method,
Step 7.a,
http://es5.github.io/#x8.7.2
the following code is supposed to throw a TypeError exception, since it
attempts to create the own property of "x" in the coerced number object
for "1":
"use strict";
1["x"] = 10; // TypeError
However, v8 does not report any exception.
I've tested this using the JavaScript console of Chrome 38.0.2125.122.
Thanks,
Daejun
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.