--- JSObject.cpp
+++ JSObject.cpp
@@ -2299,10 +2299,18 @@
// on the prototype; and the proto of the constructor is JSProto_Function.
if (key == JSProto_Function && !JS::Prefs::experimental_promise_try() &&
id == NameToId(cx->names().try_)) {
return true;
}
+
+ // It's gently surprising that this is JSProto_Function, but the trick
+ // to realize is that this is a -constructor function-, not a function
+ // on the prototype; and the proto of the constructor is JSProto_Function.
+ if (key == JSProto_Function && !JS::Prefs::experimental_joint_iteration() &&
+ id == NameToId(cx->names().zip)) {
+ return true;
+ }
#endif
if (key == JSProto_JSON &&
!JS::Prefs::experimental_json_parse_with_source() &&
(id == NameToId(cx->names().isRawJSON) ||
Raw error output:
Problem while applying patch in revision 224921:
hg error in cmd: hg import --no-commit -s 95 /tmp/tmpemo06uu0: applying /tmp/tmpemo06uu0
patching file js/src/vm/JSObject.cpp
Hunk #1 FAILED at 2298
1 out of 1 hunks FAILED -- saving rejects to file js/src/vm/JSObject.cpp.rej
abort: patch failed to apply