@@ -56,7 +56,7 @@ using v8::Int32;
5656using v8::Integer;
5757using v8::Intercepted;
5858using v8::Isolate;
59- using v8::Just ;
59+ using v8::JustVoid ;
6060using v8::KeyCollectionMode;
6161using v8::Local;
6262using v8::Maybe;
@@ -1108,7 +1108,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
11081108 TRACE_EVENT_END0 (TRACING_CATEGORY_NODE2 (vm, script), " ContextifyScript::New" );
11091109}
11101110
1111- Maybe<bool > StoreCodeCacheResult (
1111+ Maybe<void > StoreCodeCacheResult (
11121112 Environment* env,
11131113 Local<Object> target,
11141114 ScriptCompiler::CompileOptions compile_options,
@@ -1117,7 +1117,7 @@ Maybe<bool> StoreCodeCacheResult(
11171117 std::unique_ptr<ScriptCompiler::CachedData> new_cached_data) {
11181118 Local<Context> context;
11191119 if (!target->GetCreationContext ().ToLocal (&context)) {
1120- return Nothing<bool >();
1120+ return Nothing<void >();
11211121 }
11221122 if (compile_options == ScriptCompiler::kConsumeCodeCache ) {
11231123 if (target
@@ -1126,7 +1126,7 @@ Maybe<bool> StoreCodeCacheResult(
11261126 env->cached_data_rejected_string (),
11271127 Boolean::New (env->isolate (), source.GetCachedData ()->rejected ))
11281128 .IsNothing ()) {
1129- return Nothing<bool >();
1129+ return Nothing<void >();
11301130 }
11311131 }
11321132 if (produce_cached_data) {
@@ -1138,18 +1138,18 @@ Maybe<bool> StoreCodeCacheResult(
11381138 new_cached_data->length );
11391139 if (target->Set (context, env->cached_data_string (), buf.ToLocalChecked ())
11401140 .IsNothing ()) {
1141- return Nothing<bool >();
1141+ return Nothing<void >();
11421142 }
11431143 }
11441144 if (target
11451145 ->Set (context,
11461146 env->cached_data_produced_string (),
11471147 Boolean::New (env->isolate (), cached_data_produced))
11481148 .IsNothing ()) {
1149- return Nothing<bool >();
1149+ return Nothing<void >();
11501150 }
11511151 }
1152- return Just ( true );
1152+ return JustVoid ( );
11531153}
11541154
11551155// TODO(RaisinTen): Reuse in ContextifyContext::CompileFunction().
0 commit comments