src: remove unused namespace
PR-URL: https://github.com/nodejs/node/pull/26318 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
038a1a489d
commit
f18ae25193
@ -114,7 +114,7 @@ void TTYWrap::GetWindowSize(const FunctionCallbackInfo<Value>& args) {
|
|||||||
int err = uv_tty_get_winsize(&wrap->handle_, &width, &height);
|
int err = uv_tty_get_winsize(&wrap->handle_, &width, &height);
|
||||||
|
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
Local<v8::Array> a = args[0].As<Array>();
|
Local<Array> a = args[0].As<Array>();
|
||||||
a->Set(env->context(), 0, Integer::New(env->isolate(), width)).FromJust();
|
a->Set(env->context(), 0, Integer::New(env->isolate(), width)).FromJust();
|
||||||
a->Set(env->context(), 1, Integer::New(env->isolate(), height)).FromJust();
|
a->Set(env->context(), 1, Integer::New(env->isolate(), height)).FromJust();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user