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

Unified Diff: include/v8.h

Issue 2807333003: [api] Add DefineProperty() method that skips interceptors.
Patch Set: Extend DefineProperty API Created 3 years, 7 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 14a119f0e85e3be738d9649be869de6085d1c7b6..71990c153753485ec23725a0e3fac3e7d778f4f2 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2988,7 +2988,7 @@ class V8_EXPORT Object : public Value {
// Returns true on success.
V8_WARN_UNUSED_RESULT Maybe<bool> DefineOwnProperty(
Local<Context> context, Local<Name> key, Local<Value> value,
- PropertyAttribute attributes = None);
+ PropertyAttribute attributes = None, bool bypass_interceptor = false);
// Implements Object.DefineProperty(O, P, Attributes), see Ecma-262 19.1.2.4.
//
@@ -3002,9 +3002,12 @@ class V8_EXPORT Object : public Value {
//
// The PropertyDescriptor can change when redefining a property.
//
+ // Bypass_interceptor = true sets object own property bypassing interceptors
+ //
// Returns true on success.
V8_WARN_UNUSED_RESULT Maybe<bool> DefineProperty(
- Local<Context> context, Local<Name> key, PropertyDescriptor& descriptor);
+ Local<Context> context, Local<Name> key, PropertyDescriptor& descriptor,
+ bool bypass_interceptor = false);
// Sets an own property on this object bypassing interceptors and
// overriding accessors or read-only properties.
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698