🎨 Refactor spaces

This commit is contained in:
raub 2018-05-14 11:37:37 +03:00
parent abcf86a3ba
commit 5a18d45cbe
1 changed files with 2 additions and 1 deletions

View File

@ -272,10 +272,11 @@ inline void *getData(V8_VAR_OBJ obj) {
inline void consoleLog(int argc, V8_VAR_VAL *argv) { inline void consoleLog(int argc, V8_VAR_VAL *argv) {
V8_VAR_STR code = JS_STR("((...args) => console.log(...args))"); V8_VAR_STR code = JS_STR("((...args) => console.log(...args))");
V8_VAR_FUNC log = V8_VAR_FUNC::Cast(v8::Script::Compile(code)->Run()); V8_VAR_FUNC log = V8_VAR_FUNC::Cast(v8::Script::Compile(code)->Run());
Nan::Callback logCb(log); Nan::Callback logCb(log);
Nan::AsyncResource async("consoleLog()"); Nan::AsyncResource async("consoleLog()");
logCb.Call(argc, argv, &async); logCb.Call(argc, argv, &async);
} }