summaryrefslogtreecommitdiffstats
path: root/js/src/vm
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-18 09:53:57 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-18 09:53:57 +0100
commit726d2c3093d1a386edbff106070456cf866c0a6a (patch)
treec15166385c9aca28ff395265875bd09c7f0174a9 /js/src/vm
parenta24511ca8e19afe4d19008ba903e1edab0af3223 (diff)
downloadUXP-726d2c3093d1a386edbff106070456cf866c0a6a.tar
UXP-726d2c3093d1a386edbff106070456cf866c0a6a.tar.gz
UXP-726d2c3093d1a386edbff106070456cf866c0a6a.tar.lz
UXP-726d2c3093d1a386edbff106070456cf866c0a6a.tar.xz
UXP-726d2c3093d1a386edbff106070456cf866c0a6a.zip
Remove strict arguments poison pill for "caller" property per ES2017
Diffstat (limited to 'js/src/vm')
-rw-r--r--js/src/vm/ArgumentsObject.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/js/src/vm/ArgumentsObject.cpp b/js/src/vm/ArgumentsObject.cpp
index d01121ef0..717aa1050 100644
--- a/js/src/vm/ArgumentsObject.cpp
+++ b/js/src/vm/ArgumentsObject.cpp
@@ -676,7 +676,7 @@ UnmappedArgumentsObject::obj_resolve(JSContext* cx, HandleObject obj, HandleId i
if (argsobj->hasOverriddenLength())
return true;
} else {
- if (!JSID_IS_ATOM(id, cx->names().callee) && !JSID_IS_ATOM(id, cx->names().caller))
+ if (!JSID_IS_ATOM(id, cx->names().callee))
return true;
attrs = JSPROP_PERMANENT | JSPROP_GETTER | JSPROP_SETTER | JSPROP_SHARED;
@@ -709,10 +709,6 @@ UnmappedArgumentsObject::obj_enumerate(JSContext* cx, HandleObject obj)
if (!HasProperty(cx, argsobj, id, &found))
return false;
- id = NameToId(cx->names().caller);
- if (!HasProperty(cx, argsobj, id, &found))
- return false;
-
id = SYMBOL_TO_JSID(cx->wellKnownSymbols().iterator);
if (!HasProperty(cx, argsobj, id, &found))
return false;