@@ -60,6 +60,7 @@ using v8::PrimitiveArray;
6060using v8::PropertyAttribute;
6161using v8::PropertyCallbackInfo;
6262using v8::PropertyDescriptor;
63+ using v8::PropertyHandlerFlags;
6364using v8::Script;
6465using v8::ScriptCompiler;
6566using v8::ScriptOrigin;
@@ -148,13 +149,15 @@ MaybeLocal<Context> ContextifyContext::CreateV8Context(
148149 if (!CreateDataWrapper (env).ToLocal (&data_wrapper))
149150 return MaybeLocal<Context>();
150151
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 );
158161
159162 IndexedPropertyHandlerConfiguration indexed_config (
160163 IndexedPropertyGetterCallback,
@@ -163,7 +166,8 @@ MaybeLocal<Context> ContextifyContext::CreateV8Context(
163166 IndexedPropertyDeleterCallback,
164167 PropertyEnumeratorCallback,
165168 IndexedPropertyDefinerCallback,
166- data_wrapper);
169+ data_wrapper,
170+ PropertyHandlerFlags::kHasNoSideEffect );
167171
168172 object_template->SetHandler (config);
169173 object_template->SetHandler (indexed_config);
0 commit comments