Status: Accepted
Owner: ----
CC: [email protected],  [email protected],  [email protected]
Labels: Type-Bug Priority-Medium ES5

New issue 2880 by [email protected]: PutValue to primitives should throw in strict mode
http://code.google.com/p/v8/issues/detail?id=2880

function f() {
  'use strict';
  1 .foo = 'bar'
}
f();

should throw ReferenceError in strict mode because:

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-6.2.4.2

5. If IsUnresolvableReference(V), then
   a. If IsStrictReference(V) is true, then
      i. Throw ReferenceError exception.


http://people.mozilla.org/~jorendorff/es6-draft.html#sec-6.2.4

IsStrictReference(V). Returns the strict reference flag component of the reference V.

IsUnresolvableReference(V). Returns true if the base value is undefined and false otherwise.


http://people.mozilla.org/~jorendorff/es6-draft.html#sec-12.2.1

MemberExpression : MemberExpression [ Expression ]

10. If the code matched by the syntactic production that is being evaluated is strict mode code, let strict be true, else let strict be false. 11. Return a value of type Reference whose base value is bv and whose referenced name is propertyNameString, and whose strict reference flag is strict.

--
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/groups/opt_out.

Reply via email to