summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan de Mooij <jdemooij@mozilla.com>2020-04-08 08:29:03 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-08 08:53:39 +0200
commite28170c980ecb00be11a9430ef22df6ee13e78a2 (patch)
treed5955ea29ba6afb29b0237a1c4373d191f1b196a
parent0507f298e9a5124634fb16c91b404d08356639b3 (diff)
downloaduxp-e28170c980ecb00be11a9430ef22df6ee13e78a2.tar.gz
[js] Handle functions with rest parameters in isObservableArgumentSlot.RELBASE_2020040828.9-platform-old
-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;