Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index fc7870496e3ef2fcf590b39a80b78bbeb4cbde53..94ae55850a3a243bd7c6bbb63ebc510d5f7c5ebb 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -586,9 +586,7 @@ class Factory final { |
Handle<Object> NewError(Handle<JSFunction> constructor, |
Handle<String> message); |
- Handle<Object> NewInvalidStringLengthError() { |
- return NewRangeError(MessageTemplate::kInvalidStringLength); |
- } |
+ Handle<Object> NewInvalidStringLengthError(); |
Handle<Object> NewURIError() { |
return NewError(isolate()->uri_error_function(), |