Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 6d9bea29559c6b8d25043a00739db40073a8b094..80141db5729d6d7af72f9591527996c94b71fb60 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -838,22 +838,6 @@ void FullCodeGenerator::VisitSuperReference(SuperReference* super) { |
} |
-bool FullCodeGenerator::ValidateSuperCall(Call* expr) { |
- Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); |
- if (new_target_var == nullptr) { |
- // TODO(dslomov): this is not exactly correct, the spec requires us |
- // to execute the constructor and only fail when an assigment to 'this' |
- // is attempted. Will implement once we have general new.target support, |
- // but also filed spec bug 3843 to make it an early error. |
- __ CallRuntime(Runtime::kThrowUnsupportedSuperError, 0); |
- RecordJSReturnSite(expr); |
- context()->Plug(result_register()); |
- return false; |
- } |
- return true; |
-} |
- |
- |
void FullCodeGenerator::SetExpressionPosition(Expression* expr) { |
if (!info_->is_debug()) { |
CodeGenerator::RecordPositions(masm_, expr->position()); |