Status: Untriaged
Owner: ----
New issue 4386 by [email protected]: Make Object.observe accept options as
per specs; support skipRecords option
https://code.google.com/p/v8/issues/detail?id=4386
Version: 4.6.77
According to the specs:
http://arv.github.io/ecmascript-object-observe/#Object.observe
`Object.observe` should accept a plain object as its third parameter, where
options `acceptList` and `skipRecords` can be defined, defaulting to
`[ "add", "update", "delete", "reconfigure", "setPrototype", "preventExtensions"
]` and `false` respectively.
Currently, `Object.observe` uses the third parameter merely as the
`acceptList` option.
On a related note, `Object.observe` should support the `skipRecords`
option, and `Object.deliverChangeRecords` should return a boolean that
reports if records have actually been appended on the handler's list (even
when they're `undefined` values due to `skipRecords` being true):
http://arv.github.io/ecmascript-object-observe/#DeliverChangeRecords
In order to ease the transition to this breaking change, I suggest making
O.o accept both kind of parameter, using it as an accept list if it's an
array-like object and prompting a deprecation notice in the meanwhile.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.