Index: src/pending-compilation-error-handler.cc |
diff --git a/src/pending-compilation-error-handler.cc b/src/pending-compilation-error-handler.cc |
index f0449d82a90ce4a026ca958012760bc2faf95299..d5f98eb6a81a610fb16f50888b9d5c628b402e60 100644 |
--- a/src/pending-compilation-error-handler.cc |
+++ b/src/pending-compilation-error-handler.cc |
@@ -36,10 +36,10 @@ void PendingCompilationErrorHandler::ThrowPendingError(Isolate* isolate, |
switch (error_type_) { |
case kReferenceError: |
- error = factory->NewReferenceError(message_, array); |
+ error = factory->NewError("MakeReferenceError", message_, array); |
break; |
case kSyntaxError: |
- error = factory->NewSyntaxError(message_, array); |
+ error = factory->NewError("MakeSyntaxError", message_, array); |
break; |
} |