summaryrefslogtreecommitdiffstats
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:29:03 +0200
commit85a97e9a35a75e58d35f741a62a7f9ff4c1d85e3 (patch)
tree08c20ebbb24bf1d856eb29fa6959ec56d6a3265c
parent5545a8983ff0ef1fb52e64aef8e66fa9b13c1cbb (diff)
downloadUXP-85a97e9a35a75e58d35f741a62a7f9ff4c1d85e3.tar
UXP-85a97e9a35a75e58d35f741a62a7f9ff4c1d85e3.tar.gz
UXP-85a97e9a35a75e58d35f741a62a7f9ff4c1d85e3.tar.lz
UXP-85a97e9a35a75e58d35f741a62a7f9ff4c1d85e3.tar.xz
UXP-85a97e9a35a75e58d35f741a62a7f9ff4c1d85e3.zip
[js] Handle functions with rest parameters in isObservableArgumentSlot.
-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;