Skip to content

Commit

Permalink
timers, feat: Use => rewrite blank function.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Oct 10, 2017
1 parent d1c64dc commit 5a5e765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fibjs/src/global/Timer.cpp
Expand Up @@ -38,7 +38,7 @@ class JSTimer : public Timer {

if (m_hr) {
v8::Local<v8::Script> script = v8::Script::Compile(
isolate->NewString("(function(){})"), isolate->NewString(""));
isolate->NewString("(()=>{})"), isolate->NewString(""));
m_worker.Reset(isolate->m_isolate, v8::Local<v8::Function>::Cast(script->Run()));
}
}
Expand Down

0 comments on commit 5a5e765

Please sign in to comment.