Bug 1026918, part 1 - Rename BaseProxyHandler::getOwnPropertyNames -> ownPropertyKeys to match the ES6 [[OwnPropertyKeys]] internal method. r=efaust, r=bz.
Also renamed in this patch: ENUMERATE_IF_DEFINED -> ADD_KEYS_IF_DEFINED XrayEnumerateAttributesOrMethods -> XrayAttributeOrMethodKeys XrayEnumerateNativeProperties -> XrayOwnNativePropertyKeys XrayEnumerateProperties -> XrayOwnPropertyKeys WrapperOwner::getPropertyNames -> getPropertyKeys These make sense because JSITER_* flags are involved; the functions in question are not for finding enumerable properties only.
This commit is contained in:
@@ -297,7 +297,7 @@ Snapshot(JSContext *cx, JSObject *pobj_, unsigned flags, AutoIdVector *props)
|
||||
// This gets all property keys, both strings and
|
||||
// symbols. The call to Enumerate in the loop below
|
||||
// will filter out unwanted keys, per the flags.
|
||||
if (!Proxy::getOwnPropertyNames(cx, pobj, proxyProps))
|
||||
if (!Proxy::ownPropertyKeys(cx, pobj, proxyProps))
|
||||
return false;
|
||||
} else {
|
||||
if (!Proxy::keys(cx, pobj, proxyProps))
|
||||
|
||||
Reference in New Issue
Block a user