Skip to content

Why does a snap throw an error when using URLSearchParams? #656

Answered by einaralex
einaralex asked this question in Q&A
Discussion options

You must be logged in to vote

It's documented here: https://docs.metamask.io/guide/snaps-development-guide.html#developing-a-snap

Snaps execute in a sandboxed environment that's running Secure EcmaScript (SES, see below). There is no DOM, no Node.js builtins, and no platform-specific APIs other than MetaMask's wallet global object

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Montoya
Comment options

Answer selected by einaralex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants