Fixes #72
This PR resolves the issue due to automatic Nan::Utf8String destructor call due to outing of scope on line 108 what leads to:
source == "\0"
source_len > 0
so ts_query_new function would try to read a lot of bytes from a string contained in the destructed Nan::Utf8String object whose memory is most likely to be freed already in case of a long input string.
Fixes #72 This PR resolves the issue due to automatic
Nan::Utf8String
destructor call due to outing of scope on line 108 what leads to:so
ts_query_new
function would try to read a lot of bytes from a string contained in the destructedNan::Utf8String
object whose memory is most likely to be freed already in case of a long input string.