@@ -60,6 +60,7 @@ using v8::PrimitiveArray;
60
60
using v8::PropertyAttribute;
61
61
using v8::PropertyCallbackInfo;
62
62
using v8::PropertyDescriptor;
63
+ using v8::PropertyHandlerFlags;
63
64
using v8::Script;
64
65
using v8::ScriptCompiler;
65
66
using v8::ScriptOrigin;
@@ -148,13 +149,15 @@ MaybeLocal<Context> ContextifyContext::CreateV8Context(
148
149
if (!CreateDataWrapper (env).ToLocal (&data_wrapper))
149
150
return MaybeLocal<Context>();
150
151
151
- NamedPropertyHandlerConfiguration config (PropertyGetterCallback,
152
- PropertySetterCallback,
153
- PropertyDescriptorCallback,
154
- PropertyDeleterCallback,
155
- PropertyEnumeratorCallback,
156
- PropertyDefinerCallback,
157
- data_wrapper);
152
+ NamedPropertyHandlerConfiguration config (
153
+ PropertyGetterCallback,
154
+ PropertySetterCallback,
155
+ PropertyDescriptorCallback,
156
+ PropertyDeleterCallback,
157
+ PropertyEnumeratorCallback,
158
+ PropertyDefinerCallback,
159
+ data_wrapper,
160
+ PropertyHandlerFlags::kHasNoSideEffect );
158
161
159
162
IndexedPropertyHandlerConfiguration indexed_config (
160
163
IndexedPropertyGetterCallback,
@@ -163,7 +166,8 @@ MaybeLocal<Context> ContextifyContext::CreateV8Context(
163
166
IndexedPropertyDeleterCallback,
164
167
PropertyEnumeratorCallback,
165
168
IndexedPropertyDefinerCallback,
166
- data_wrapper);
169
+ data_wrapper,
170
+ PropertyHandlerFlags::kHasNoSideEffect );
167
171
168
172
object_template->SetHandler (config);
169
173
object_template->SetHandler (indexed_config);
0 commit comments