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