Closed Bug 802439 Opened 12 years ago Closed 12 years ago

js::SameValue isn't wrapper-aware

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: Waldo, Unassigned)

Details

js> var obj = {};
js> var o = Object.defineProperty({}, "foo", { value: obj });
js> Object.defineProperty(o, "foo", { value: obj })
({})
js> Object.defineProperty(o, "foo", { value: wrap(obj) })
typein:4:0 TypeError: can't redefine non-configurable property 'foo'
Luke claims wrap() is unlike anything in the browser at all, which doesn't have same-compartment wrappers like wrap() creates, so this is probably invalid.  Which makes me wonder why we have wrap() at all, if it's just unspecified complexity that doesn't help move browser-based testing into shell-testable land...
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.