summaryrefslogtreecommitdiff
path: root/js/src/jit/CompileInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/CompileInfo.h')
-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 44848890c4..f7f8c70bb8 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;