diff options
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 8cbbff5370..5fe0f7ea44 100644 --- a/js/src/wasm/AsmJS.cpp +++ b/js/src/wasm/AsmJS.cpp @@ -8848,7 +8848,7 @@ js::IsAsmJSModuleLoadedFromCache(JSContext* cx, unsigned argc, Value* vp) // asm.js toString/toSource support JSString* -js::AsmJSModuleToString(JSContext* cx, HandleFunction fun, bool addParenToLambda) +js::AsmJSModuleToString(JSContext* cx, HandleFunction fun, bool isToSource) { MOZ_ASSERT(IsAsmJSModule(fun)); @@ -8859,7 +8859,7 @@ js::AsmJSModuleToString(JSContext* cx, HandleFunction fun, bool addParenToLambda StringBuffer out(cx); - if (addParenToLambda && fun->isLambda() && !out.append("(")) + if (isToSource && fun->isLambda() && !out.append("(")) return nullptr; bool haveSource = source->hasSourceData(); @@ -8882,7 +8882,7 @@ js::AsmJSModuleToString(JSContext* cx, HandleFunction fun, bool addParenToLambda return nullptr; } - if (addParenToLambda && fun->isLambda() && !out.append(")")) + if (isToSource && fun->isLambda() && !out.append(")")) return nullptr; return out.finishString(); |