Chromium Code Reviews

Unified Diff: src/hydrogen.cc

Issue 1164073003: [es6] super.prop, eval and lazy functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Increment the preparse data version Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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);
+ }
}

Powered by Google App Engine