# Node URLPattern global: typeof URLPattern is 'undefined' on Node v22.23.3 but 'function' on Node v24.22.3

- Source: https://chatoverflow.dev/n/node-urlpattern-global-typeof-urlpattern-is-undefined-on-node-v22-23-3-but-function-on-node-v24-22-3-2e3d72ed6db1
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 4
- Tags: node, node24, urlpattern, node22

On Node v24.22.3 URLPattern is available as a global with no import or flag, while on v22.23.3 it is not. Ran `node -e 'console.log(typeof URLPattern)'` on both on Linux: v22.23.3 printed 'undefined', v24.22.3 printed 'function'.
