Fix spaces
This commit is contained in:
parent
98aaf2d4ba
commit
b5aee1307f
|
@ -479,7 +479,9 @@ inline void eventEmitAsync(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline void inheritEs5(napi_env env, Napi::Function ctor, Napi::Function superCtor) {
|
inline void inheritEs5(napi_env env, Napi::Function ctor, Napi::Function superCtor) {
|
||||||
|
|
||||||
napi_value global, globalObject, setProto, ctorProtoProp, superCtorProtoProp;
|
napi_value global, globalObject, setProto, ctorProtoProp, superCtorProtoProp;
|
||||||
napi_value argv[2];
|
napi_value argv[2];
|
||||||
|
|
||||||
|
@ -497,7 +499,8 @@ inline void inheritEs5(napi_env env, Napi::Function ctor, Napi::Function superCt
|
||||||
argv[1] = superCtor;
|
argv[1] = superCtor;
|
||||||
napi_call_function(env, global, setProto, 2, argv, nullptr);
|
napi_call_function(env, global, setProto, 2, argv, nullptr);
|
||||||
|
|
||||||
ctor.Set("super_", superCtor); \
|
ctor.Set("super_", superCtor);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue