--- JSObject.cpp
+++ JSObject.cpp
@@ -2265,10 +2265,18 @@
// on the prototype; and the proto of the constructor is JSProto_Function.
if (key == JSProto_Function && !JS::Prefs::experimental_regexp_escape() &&
id == NameToId(cx->names().escape)) {
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_promise_try() &&
+ id == NameToId(cx->names().try_)) {
+ return true;
+ }
#endif
#ifdef ENABLE_JSON_PARSE_WITH_SOURCE
if (key == JSProto_JSON &&
!JS::Prefs::experimental_json_parse_with_source() &&
Raw error output:
Problem while applying patch in revision 218494:
hg error in cmd: hg import --no-commit -s 95 /tmp/tmprzb9qo_r: applying /tmp/tmprzb9qo_r
patching file modules/libpref/init/StaticPrefList.yaml
Hunk #1 FAILED at 8062
1 out of 1 hunks FAILED -- saving rejects to file modules/libpref/init/StaticPrefList.yaml.rej
patching file js/src/vm/JSObject.cpp
Hunk #1 FAILED at 2264
1 out of 1 hunks FAILED -- saving rejects to file js/src/vm/JSObject.cpp.rej
patching file js/src/shell/js.cpp
Hunk #2 FAILED at 12735
1 out of 2 hunks FAILED -- saving rejects to file js/src/shell/js.cpp.rej
abort: patch failed to apply