Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index a1a52b6eee75ef4c97542aedafc29f5e99f347b6..d5f261516fde0855857e6f6adbe29d54c04cfcc5 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -18,6 +18,7 @@ |
#include "src/field-index.h" |
#include "src/flags.h" |
#include "src/list.h" |
+#include "src/messages.h" |
#include "src/property-details.h" |
#include "src/unicode-decoder.h" |
#include "src/unicode.h" |
@@ -1205,6 +1206,11 @@ class Object { |
MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, |
Handle<Object> input); |
+ // ES6 section 7.1.17 ToIndex |
+ MUST_USE_RESULT static MaybeHandle<Object> ToIndex( |
+ Isolate* isolate, Handle<Object> input, |
+ MessageTemplate::Template error_index); |
+ |
// ES6 section 7.3.9 GetMethod |
MUST_USE_RESULT static MaybeHandle<Object> GetMethod( |
Handle<JSReceiver> receiver, Handle<Name> name); |