diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-10-04 14:29:04 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-10-04 14:29:04 +0200 |
| commit | 0e6205ebcb990fd57f5056c1cf5e9de1487be934 (patch) | |
| tree | c3c96a45874df6326965e3aada63c9e9184aeb8d /bindings/node/binding.cc | |
| parent | 4a1d56285559545a56cb7c79a0ea1564f01e09e5 (diff) | |
Update name
Diffstat (limited to 'bindings/node/binding.cc')
| -rw-r--r-- | bindings/node/binding.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings/node/binding.cc b/bindings/node/binding.cc index 54f34ac..ffae1ee 100644 --- a/bindings/node/binding.cc +++ b/bindings/node/binding.cc @@ -4,7 +4,7 @@ using namespace v8; -extern "C" TSLanguage * tree_sitter_apinotation(); +extern "C" TSLanguage * tree_sitter_api_notation(); namespace { @@ -17,12 +17,12 @@ void Init(Local<Object> exports, Local<Object> module) { Local<Function> constructor = Nan::GetFunction(tpl).ToLocalChecked(); Local<Object> instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked(); - Nan::SetInternalFieldPointer(instance, 0, tree_sitter_apinotation()); + Nan::SetInternalFieldPointer(instance, 0, tree_sitter_api_notation()); - Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("apinotation").ToLocalChecked()); + Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("api_notation").ToLocalChecked()); Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance); } -NODE_MODULE(tree_sitter_apinotation_binding, Init) +NODE_MODULE(tree_sitter_api_notation_binding, Init) } // namespace |