…type. WebGL removes the 'length' field, preferring to infer the length from the size of the array parameter. We also accept Typed Array arguments as well.
Added a few missing cases, and used 'unsigned' return types where WebGL wants us to.
This helps us use consistent relative paths in library code.
strrchr returns NULL if the path separator is not found in the filename path, which then caused setRootPath() to attempt to allocate a huge amount of memory. Fixed.
…ashes for using a destroyed (zapped) handle. If you use a handle scope and return an object, you must escape it by using .Close(), and there were many cases that did not do this. Callbacks have a HandleScope created for them anyway, so there is no reason for an additional HandleScope. This removes most uses of HandleScopes, fixing the debug mode crashes.