Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: ensure URLPattern is registered
  • Loading branch information
triniwiz committed Feb 23, 2025
commit 7f0c4882f143bc7e59f5fc33e63d9b1ce2e75a03
3 changes: 2 additions & 1 deletion NativeScript/runtime/ModuleBinding.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ namespace tns {
V(worker) \
V(timers) \
V(url) \
V(urlsearchparams)
V(urlsearchparams) \
V(urlpattern)

enum {
NM_F_BUILTIN = 1 << 0, // Unused.
Expand Down
2 changes: 1 addition & 1 deletion NativeScript/runtime/URLPatternImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,4 +717,4 @@ void URLPatternImpl::Exec(const v8::FunctionCallbackInfo<v8::Value> &args) {
}
}

NODE_BINDING_PER_ISOLATE_INIT_OBJ(pattern, tns::URLPatternImpl::Init)
NODE_BINDING_PER_ISOLATE_INIT_OBJ(urlpattern, tns::URLPatternImpl::Init)
Loading