Make Node.js language bindings context aware

They don't have any dynamic global data, so all it takes is just declaring them as such
This commit is contained in:
Segev Finer 2023-12-28 16:39:19 +02:00 committed by GitHub
parent 660481dbf7
commit 4a42c6d5f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,6 @@ void Init(Local<Object> exports, Local<Object> module) {
Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance);
}
NODE_MODULE(tree_sitter_PARSER_NAME_binding, Init)
NODE_MODULE_CONTEXT_AWARE(tree_sitter_PARSER_NAME_binding, Init)
} // namespace