Skip to content

Conversation

@lionello
Copy link

@lionello lionello commented Apr 4, 2017

This will catch (synchronous) exceptions that are thrown at the top-level, by wrapping every call in a promise.

I used the following regex:

([^=].\n                        )(window\.crypto\.subtle\.[^<]+?)(\n                        \.then)
\1Promise.resolve().then(function(){\n                            return \2;\n                        })\3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant