invertase / dart_edge

Run Dart on the Edge - supporting Vercel & Cloudflare Workers (more coming soon).
https://docs.dartedge.dev
Apache License 2.0
324 stars 23 forks source link

fix(edge_runtime): patch location.href global #19

Closed Ehesp closed 1 year ago

Ehesp commented 1 year ago

Dart to JS checks for a self.location.href value to assert whether Uri.base is supported. We patch it in here since it is supported, but not available on v8 runtime.