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

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: rebase 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 72ca092f5123c0f4920b17bba638594b49612c17..dd7c1dd7da61980807d1370a2ab40b079e146c35 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