Commit de312cfd authored by Trevor Norris's avatar Trevor Norris
Browse files

timer_wrap: remove HandleScopes, check return size



Calls from JS to C++ have an implicit HandleScope. So there is no need
to instantiate a new HandleScope in these basic cases.

Check if the returned int64_t is an SMI and cast the return value to
uint32_t instead of a double. Prevents needing to box the return value,
and saves a small amount of execution time.

Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
parent 2122a77f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment