Skip to content

Commit d5bf4ea

Browse files
Nathan SoboAntonio Scandurra
Nathan Sobo
and
Antonio Scandurra
committed
Fix names in TSX node bindings
Co-Authored-By: Antonio Scandurra <[email protected]>
1 parent f43018b commit d5bf4ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tsx/src/binding.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using namespace v8;
66

7-
extern "C" TSLanguage * tree_sitter_typescript();
7+
extern "C" TSLanguage * tree_sitter_tsx();
88

99
namespace {
1010

@@ -17,12 +17,12 @@ void Init(Handle<Object> exports, Handle<Object> module) {
1717

1818
Local<Function> constructor = tpl->GetFunction();
1919
Local<Object> instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked();
20-
Nan::SetInternalFieldPointer(instance, 0, tree_sitter_typescript());
20+
Nan::SetInternalFieldPointer(instance, 0, tree_sitter_tsx());
2121

22-
instance->Set(Nan::New("name").ToLocalChecked(), Nan::New("typescript").ToLocalChecked());
22+
instance->Set(Nan::New("name").ToLocalChecked(), Nan::New("tsx").ToLocalChecked());
2323
module->Set(Nan::New("exports").ToLocalChecked(), instance);
2424
}
2525

26-
NODE_MODULE(tree_sitter_typescript_binding, Init)
26+
NODE_MODULE(tree_sitter_tsx_binding, Init)
2727

2828
} // namespace

0 commit comments

Comments
 (0)