@@ -28,7 +28,6 @@ using v8::BackingStore;
28
28
using v8::Boolean ;
29
29
using v8::Context;
30
30
using v8::EscapableHandleScope;
31
- using v8::False;
32
31
using v8::Function;
33
32
using v8::FunctionCallbackInfo;
34
33
using v8::FunctionTemplate;
@@ -42,7 +41,6 @@ using v8::Number;
42
41
using v8::Object;
43
42
using v8::ObjectTemplate;
44
43
using v8::String;
45
- using v8::True;
46
44
using v8::Uint8Array;
47
45
using v8::Undefined;
48
46
using v8::Value;
@@ -332,10 +330,8 @@ void Http2Settings::Done(bool ack) {
332
330
uint64_t end = uv_hrtime ();
333
331
double duration = (end - startTime_) / 1e6 ;
334
332
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)};
339
335
MakeCallback (callback (), arraysize (argv), argv);
340
336
}
341
337
@@ -3131,10 +3127,7 @@ void Http2Ping::Done(bool ack, const uint8_t* payload) {
3131
3127
}
3132
3128
3133
3129
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};
3138
3131
MakeCallback (callback (), arraysize (argv), argv);
3139
3132
}
3140
3133
0 commit comments