My favorites | Sign in
Project Home Downloads Wiki Issues Source Code Search
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 2411: Object.getNotifier(obj).notify({}) uses property assignment rather than DefineOwnProperty
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Closed:  Feb 2013

Sign in to add a comment
Project Member Reported by, Nov 14, 2012
The spec says:

For each enumerable property name N in changeRecord,
  If N is not “object”, then
  Let value be the result of calling the [[Get]] internal method of changeRecord with N.
  Call the [[DefineOwnProperty]] internal method of newRecord with arguments N, the Property Descriptor  {[[Value]]: value, [[Writable]]: false, [[Enumerable]]: true, [[Configurable]]: false}, and true.

We simply assign to changeRecord, e.g. changeRecord[prop]. This may be observable if Object.prototype has an accessor on it.

Feb 22, 2013
Project Member #1
This no longer seems to be the case (we use %DefineOrRedefineDataProperty()).
Status: Fixed
Sign in to add a comment

Powered by Google Project Hosting