Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 40022a153a760071f3cc4646d1748305a72f152c..9bbafb224977b436edc15841689f0331d908c196 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4513,6 +4513,11 @@ void HOptimizedGraphBuilder::SetUpScope(Scope* scope) { |
if (rest) { |
return Bailout(kRestParameter); |
} |
+ |
+ if (scope->this_function_var() != nullptr || |
+ scope->new_target_var() != nullptr) { |
+ return Bailout(kSuperReference); |
+ } |
} |