[Webkit-unassigned] [Bug 92817] use strict, string property assignment throws TypeError
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 1 14:40:24 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=92817
--- Comment #6 from Gavin Barraclough <barraclough at apple.com> 2012-08-01 14:40:25 PST ---
Safari 6.0's behavior is correct here, see ECMA-262, section 8.7.2.
The expression 'value.something' returns a property reference, and per section 11.13.1 step 5 this calls PutValue (8.7.2). The base of the reference is a primitive string, so per step 4a the put method we'll use if the special [[Put]] implementation specified below, and per step 4b the 'Throw' argument to [[Put]] is true (since we're in strict code, this is a strict reference). As the String object & its prototypes do not contain a 'something' property, we'll reach step 7, and throw a type error per step 7a.
cheers,
G.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list