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

Unified Diff: src/objects.h

Issue 2431223005: Implement DefineOwnProperty for TypedArrays (Closed)
Patch Set: formatting fixes Created 4 years, 1 month 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 0f77fdf2225b88ede69682728803575a4402f78f..1c1c46aec5bf137f2e837e5202aba60557b9ae3c 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -10973,6 +10973,11 @@ class JSTypedArray: public JSArrayBufferView {
DECL_ACCESSORS(length, Object)
inline uint32_t length_value() const;
+ // ES6 9.4.5.3
+ MUST_USE_RESULT static Maybe<bool> DefineOwnProperty(
+ Isolate* isolate, Handle<JSTypedArray> o, Handle<Object> key,
+ PropertyDescriptor* desc, ShouldThrow should_throw);
+
DECLARE_CAST(JSTypedArray)
ExternalArrayType type();
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | test/mjsunit/element-accessor.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698