summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorJan de Mooij <jdemooij@mozilla.com>2020-04-08 08:29:03 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 13:26:57 +0200
commitb93afb1ba7f3b4182d5dcf0a940fd99d5e808ecd (patch)
treeb786d574c97c49c96fae7a479fd69d41cb8514e3 /js
parent277f2116b6660e9bbe7f5d67524be57eceb49b8b (diff)
downloadUXP-b93afb1ba7f3b4182d5dcf0a940fd99d5e808ecd.tar
UXP-b93afb1ba7f3b4182d5dcf0a940fd99d5e808ecd.tar.gz
UXP-b93afb1ba7f3b4182d5dcf0a940fd99d5e808ecd.tar.lz
UXP-b93afb1ba7f3b4182d5dcf0a940fd99d5e808ecd.tar.xz
UXP-b93afb1ba7f3b4182d5dcf0a940fd99d5e808ecd.zip
[js] Handle functions with rest parameters in isObservableArgumentSlot.
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;