| Index: src/pending-compilation-error-handler.cc
|
| diff --git a/src/pending-compilation-error-handler.cc b/src/pending-compilation-error-handler.cc
|
| index afb347e419d488f5d446d653c16be0dd24217c2a..f1f9a20e582b423c2b06caf029b53026a9552a25 100644
|
| --- a/src/pending-compilation-error-handler.cc
|
| +++ b/src/pending-compilation-error-handler.cc
|
| @@ -31,10 +31,10 @@ void PendingCompilationErrorHandler::ThrowPendingError(Isolate* isolate,
|
| Handle<Object> error;
|
| switch (error_type_) {
|
| case kReferenceError:
|
| - error = factory->NewError("MakeReferenceError", message_, argument);
|
| + error = factory->NewReferenceError(message_, argument);
|
| break;
|
| case kSyntaxError:
|
| - error = factory->NewError("MakeSyntaxError", message_, argument);
|
| + error = factory->NewSyntaxError(message_, argument);
|
| break;
|
| default:
|
| UNREACHABLE();
|
|
|