Open lionello opened 7 years ago
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
This will catch (synchronous) exceptions that are thrown at the top-level, by wrapping every call in a promise.
I used the following regex: