Closed Bug 730632 Opened 12 years ago Closed 12 years ago

[[Get]]/[[Put]] for primitives should not wrap on strict accessor call

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 603201

People

(Reporter: gsnedders, Unassigned)

Details

Attachments

(1 file)

Attached file Test cases
See attached TC.

The special [[Get]]/[[Put]] defined in ES5.1 §8.7 calls accessors with the primitive value as thisArg; in the non-strict accessor case §10.4.3 calls ToObject on thisArg before entering the function code, whereas in the strict accessor case thisArg is passed through untouched (i.e., as a primitive).

Currently SM, JSC (about to report there), and Carakan (CORE-44789) all always wrap, V8 never does (equally about to be reported).
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
That looks thoroughly like the wrong bug that you've marked this as a duplicate of.
And then I find the bug I couldn't find last night…
Hmm, yes, that was the wrong bug, wasn't it.  :-)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: