Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: src/compiler/typer.cc

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: address comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index 6fb66c612d22cf9de47488ae14c96cb0bbdb6d83..18622a60d7ee27a75913f151caff4e16e671f4b8 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1255,6 +1255,10 @@ Type* Typer::Visitor::JSOrdinaryHasInstanceTyper(Type* lhs, Type* rhs,
return Type::Boolean();
}
+Type* Typer::Visitor::TypeJSGetSuperConstructor(Node* node) {
+ return Type::Receiver();
+}
+
// JS context operators.

Powered by Google App Engine
This is Rietveld 408576698