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

Unified Diff: src/builtins/builtins-object.cc

Issue 2807333003: [api] Add DefineProperty() method that skips interceptors.
Patch Set: Created 3 years, 8 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/builtins/builtins-object.cc
diff --git a/src/builtins/builtins-object.cc b/src/builtins/builtins-object.cc
index 8be615013c9ee8b17739790f3797e975361eff43..e2837031808e74be3324b2b1cb06988a38777c8c 100644
--- a/src/builtins/builtins-object.cc
+++ b/src/builtins/builtins-object.cc
@@ -79,6 +79,17 @@ BUILTIN(ObjectDefineProperty) {
return JSReceiver::DefineProperty(isolate, target, key, attributes);
}
+BUILTIN(ObjectDefinePropertyWithoutInterceptors) {
Franzi 2017/04/12 08:58:17 Do we need this builtin?
+ HandleScope scope(isolate);
+ DCHECK_EQ(4, args.length());
+ Handle<Object> target = args.at(1);
+ Handle<Object> key = args.at(2);
+ Handle<Object> attributes = args.at(3);
+
+ return JSReceiver::DefinePropertyWithoutInterceptors(isolate, target, key,
+ attributes);
+}
+
namespace {
template <AccessorComponent which_accessor>

Powered by Google App Engine
This is Rietveld 408576698