summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/src/jit/CompileInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jit/CompileInfo.h b/js/src/jit/CompileInfo.h
index 44848890c..f7f8c70bb 100644
--- a/js/src/jit/CompileInfo.h
+++ b/js/src/jit/CompileInfo.h
@@ -487,7 +487,7 @@ class CompileInfo
// Function.arguments can be used to access all arguments in non-strict
// scripts, so we can't optimize out any arguments.
- if ((hasArguments() || !script()->strict()) &&
+ if ((mayReadFrameArgsDirectly_ || !script()->strict()) &&
firstArgSlot() <= slot && slot - firstArgSlot() < nargs())
{
return true;