Skip to content
This repository has been archived by the owner on Dec 9, 2017. It is now read-only.

putField and putFieldPre are passed uncoerced object #15

Open
simonhj opened this issue Dec 6, 2013 · 0 comments
Open

putField and putFieldPre are passed uncoerced object #15

simonhj opened this issue Dec 6, 2013 · 0 comments
Labels

Comments

@simonhj
Copy link
Contributor

simonhj commented Dec 6, 2013

In the below property lookup the object used for lookup is coerced to a string by calling toString internally in the interpreter, thus the actually field name used is '[object Object]'

var o = {}
o[{}] = {}

The call backs putFieldPre and putField are passed the original object {}, not the string.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant