@@ -28,7 +28,6 @@ using v8::BackingStore;
2828using v8::Boolean;
2929using v8::Context;
3030using v8::EscapableHandleScope;
31- using v8::False;
3231using v8::Function;
3332using v8::FunctionCallbackInfo;
3433using v8::FunctionTemplate;
@@ -42,7 +41,6 @@ using v8::Number;
4241using v8::Object;
4342using v8::ObjectTemplate;
4443using v8::String;
45- using v8::True;
4644using v8::Uint8Array;
4745using v8::Undefined;
4846using v8::Value;
@@ -332,10 +330,8 @@ void Http2Settings::Done(bool ack) {
332330 uint64_t end = uv_hrtime ();
333331 double duration = (end - startTime_) / 1e6 ;
334332
335- Local<Value> argv[] = {
336- ack ? True (env ()->isolate ()) : False (env ()->isolate ()),
337- Number::New (env ()->isolate (), duration)
338- };
333+ Local<Value> argv[] = {Boolean::New (env ()->isolate (), ack),
334+ Number::New (env ()->isolate (), duration)};
339335 MakeCallback (callback (), arraysize (argv), argv);
340336}
341337
@@ -3131,10 +3127,7 @@ void Http2Ping::Done(bool ack, const uint8_t* payload) {
31313127 }
31323128
31333129 Local<Value> argv[] = {
3134- ack ? True (isolate) : False (isolate),
3135- Number::New (isolate, duration_ms),
3136- buf
3137- };
3130+ Boolean::New (isolate, ack), Number::New (isolate, duration_ms), buf};
31383131 MakeCallback (callback (), arraysize (argv), argv);
31393132}
31403133
0 commit comments