File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
using namespace v8 ;
6
6
7
- extern " C" TSLanguage * tree_sitter_typescript ();
7
+ extern " C" TSLanguage * tree_sitter_tsx ();
8
8
9
9
namespace {
10
10
@@ -17,12 +17,12 @@ void Init(Handle<Object> exports, Handle<Object> module) {
17
17
18
18
Local<Function> constructor = tpl->GetFunction ();
19
19
Local<Object> instance = constructor->NewInstance (Nan::GetCurrentContext ()).ToLocalChecked ();
20
- Nan::SetInternalFieldPointer (instance, 0 , tree_sitter_typescript ());
20
+ Nan::SetInternalFieldPointer (instance, 0 , tree_sitter_tsx ());
21
21
22
- instance->Set (Nan::New (" name" ).ToLocalChecked (), Nan::New (" typescript " ).ToLocalChecked ());
22
+ instance->Set (Nan::New (" name" ).ToLocalChecked (), Nan::New (" tsx " ).ToLocalChecked ());
23
23
module->Set (Nan::New (" exports" ).ToLocalChecked (), instance);
24
24
}
25
25
26
- NODE_MODULE (tree_sitter_typescript_binding , Init)
26
+ NODE_MODULE (tree_sitter_tsx_binding , Init)
27
27
28
28
} // namespace
You can’t perform that action at this time.
0 commit comments