diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 12:47:01 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 12:47:01 +0100 |
commit | a413cf72888dcb5197ba44aba547b8d496231cff (patch) | |
tree | 35a642b0239e0a0c01e8326fcea611416ce7dd80 /js/xpconnect/wrappers | |
parent | 3114d48cee98c43c5d980eccfc104854860ef2be (diff) | |
download | UXP-a413cf72888dcb5197ba44aba547b8d496231cff.tar UXP-a413cf72888dcb5197ba44aba547b8d496231cff.tar.gz UXP-a413cf72888dcb5197ba44aba547b8d496231cff.tar.lz UXP-a413cf72888dcb5197ba44aba547b8d496231cff.tar.xz UXP-a413cf72888dcb5197ba44aba547b8d496231cff.zip |
Update RegExp Xray code
Issue #77
Diffstat (limited to 'js/xpconnect/wrappers')
-rw-r--r-- | js/xpconnect/wrappers/XrayWrapper.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/js/xpconnect/wrappers/XrayWrapper.cpp b/js/xpconnect/wrappers/XrayWrapper.cpp index 8011d207f..48a9fdc68 100644 --- a/js/xpconnect/wrappers/XrayWrapper.cpp +++ b/js/xpconnect/wrappers/XrayWrapper.cpp @@ -636,10 +636,6 @@ JSXrayTraits::resolveOwnProperty(JSContext* cx, const Wrapper& jsWrapper, return true; } - // Handle the 'lastIndex' property for RegExp prototypes. - if (key == JSProto_RegExp && id == GetJSIDByIndex(cx, XPCJSContext::IDX_LASTINDEX)) - return getOwnPropertyFromWrapperIfSafe(cx, wrapper, id, desc); - // Grab the JSClass. We require all Xrayable classes to have a ClassSpec. const js::Class* clasp = js::GetObjectClass(target); MOZ_ASSERT(clasp->specDefined()); @@ -881,10 +877,6 @@ JSXrayTraits::enumerateNames(JSContext* cx, HandleObject wrapper, unsigned flags if (!props.append(GetJSIDByIndex(cx, XPCJSContext::IDX_CONSTRUCTOR))) return false; - // For RegExp protoypes, add the 'lastIndex' property. - if (key == JSProto_RegExp && !props.append(GetJSIDByIndex(cx, XPCJSContext::IDX_LASTINDEX))) - return false; - // Grab the JSClass. We require all Xrayable classes to have a ClassSpec. const js::Class* clasp = js::GetObjectClass(target); MOZ_ASSERT(clasp->specDefined()); |