diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 17:11:49 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:19 -0400 |
commit | 668254e2b2a7b4f1d6da703275b89f3753096f71 (patch) | |
tree | 6120c3a0456fc1983f30685d17920a92b3397998 /js/src/wasm/AsmJS.cpp | |
parent | afb28a43d481075a244b0e18faa8447dfadacf8f (diff) | |
download | UXP-668254e2b2a7b4f1d6da703275b89f3753096f71.tar UXP-668254e2b2a7b4f1d6da703275b89f3753096f71.tar.gz UXP-668254e2b2a7b4f1d6da703275b89f3753096f71.tar.lz UXP-668254e2b2a7b4f1d6da703275b89f3753096f71.tar.xz UXP-668254e2b2a7b4f1d6da703275b89f3753096f71.zip |
903389 - Fix uses of ClassMethodIsNative.
Diffstat (limited to 'js/src/wasm/AsmJS.cpp')
-rw-r--r-- | js/src/wasm/AsmJS.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/wasm/AsmJS.cpp b/js/src/wasm/AsmJS.cpp index 6483d6ec3..f906d4bf1 100644 --- a/js/src/wasm/AsmJS.cpp +++ b/js/src/wasm/AsmJS.cpp @@ -7478,10 +7478,10 @@ HasPureCoercion(JSContext* cx, HandleValue v) // coercions are not observable and coercion via ToNumber/ToInt32 // definitely produces NaN/0. We should remove this special case later once // most apps have been built with newer Emscripten. - jsid toString = NameToId(cx->names().toString); if (v.toObject().is<JSFunction>() && - HasObjectValueOf(&v.toObject(), cx) && - ClassMethodIsNative(cx, &v.toObject().as<JSFunction>(), &JSFunction::class_, toString, fun_toString)) + HasNoToPrimitiveMethodPure(&v.toObject(), cx) && + HasNativeMethodPure(&v.toObject(), cx->names().valueOf, obj_valueOf, cx) && + HasNativeMethodPure(&v.toObject(), cx->names().toString, fun_toString, cx)) { return true; } |