http2: fix compilation error after V8 update

Backport-PR-URL: https://github.com/nodejs/node/pull/14813
Backport-Reviewed-By: Anna Henningsen <anna@addaleax.net>
Backport-Reviewed-By: Timothy Gu <timothygu99@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/14239
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
James M Snell authored and Anna Henningsen committed 2017-08-14 13:20:28 +02:00
1 parent f46c50b3e2
commit efd929e402
1 file changed
+1 -1
+1 -1
View File
@@ -868,7 +868,7 @@ void Http2Session::OnTrailers(Nghttp2Stream* stream,
};
Local<Value> ret = MakeCallback(env()->ontrailers_string(),
arraysize(argv), argv);
arraysize(argv), argv).ToLocalChecked();
if (!ret.IsEmpty()) {
if (ret->IsArray()) {
Local<Array> headers = ret.As<Array>();