Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(904)

Unified Diff: src/objects.h

Issue 2090353003: Amend DataView, ArrayBuffer, and TypedArray methods to use ToIndex. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enable test Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 680677d43f31741761c1269e536028997a4d6cb5..ca82d7c3407f4ab10c6a59adeb511b5fa576432b 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1177,6 +1177,10 @@ 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);
+
// ES6 section 7.3.9 GetMethod
MUST_USE_RESULT static MaybeHandle<Object> GetMethod(
Handle<JSReceiver> receiver, Handle<Name> name);

Powered by Google App Engine
This is Rietveld 408576698