@@ -140,7 +140,7 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New(
140140 if (!(CreateV8Context (env->isolate (), object_template, snapshot_data, queue)
141141 .ToLocal (&v8_context))) {
142142 // Allocation failure, maximum call stack size reached, termination, etc.
143- return BaseObjectPtr<ContextifyContext>() ;
143+ return nullptr ;
144144 }
145145 return New (v8_context, env, sandbox_obj, options);
146146}
@@ -263,7 +263,7 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New(
263263 // things down significantly and they are only needed in rare occasions
264264 // in the vm contexts.
265265 if (InitializeContextRuntime (v8_context).IsNothing ()) {
266- return BaseObjectPtr<ContextifyContext>() ;
266+ return nullptr ;
267267 }
268268
269269 Local<Context> main_context = env->context ();
@@ -315,7 +315,7 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New(
315315 ctor_name,
316316 static_cast <v8::PropertyAttribute>(v8::DontEnum))
317317 .IsNothing ()) {
318- return BaseObjectPtr<ContextifyContext>() ;
318+ return nullptr ;
319319 }
320320 }
321321
@@ -328,15 +328,15 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New(
328328 env->host_defined_option_symbol (),
329329 options->host_defined_options_id )
330330 .IsNothing ()) {
331- return BaseObjectPtr<ContextifyContext>() ;
331+ return nullptr ;
332332 }
333333
334334 env->AssignToContext (v8_context, nullptr , info);
335335
336336 if (!env->contextify_wrapper_template ()
337337 ->NewInstance (v8_context)
338338 .ToLocal (&wrapper)) {
339- return BaseObjectPtr<ContextifyContext>() ;
339+ return nullptr ;
340340 }
341341
342342 result =
@@ -352,7 +352,7 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New(
352352 ->SetPrivate (
353353 v8_context, env->contextify_context_private_symbol (), wrapper)
354354 .IsNothing ()) {
355- return BaseObjectPtr<ContextifyContext>() ;
355+ return nullptr ;
356356 }
357357
358358 // Assign host_defined_options_id to the sandbox object or the global object
@@ -364,7 +364,7 @@ BaseObjectPtr<ContextifyContext> ContextifyContext::New(
364364 env->host_defined_option_symbol (),
365365 options->host_defined_options_id )
366366 .IsNothing ()) {
367- return BaseObjectPtr<ContextifyContext>() ;
367+ return nullptr ;
368368 }
369369 return result;
370370}
0 commit comments