Robust check of provided JS options
Use Nan::To<Type> instead of ->ToType() to convert caller supplied objects in renderXXX functions. Verify that provided options, options.result and options.result.stats are all valid objects provided by the caller. Throw TypeException otherwise. Introduce low-level tests that invoke C++ function directly, without additional JavaScript wrappers.
Showing
test/lowlevel.js
0 → 100644
Please
register
or
sign in
to comment