I have an older project on Microsoft ASP(dot)NET WebForms, and their __doPostBack() function crawls up the stack to detect recursion, but this breaks on Firefox when “use strict;” is in effect (in part of the call stack?)
My question: if I crack open Sentry’s bundle.min.js and erase the “use strict”; at the start of the file, what sort of expectation should I have that this shouldn’t break anything?
(Note: an alternative may be to invoke __doPostBack from a window.setTimeout, so that it gets a different callstack, but there are a kajillion of these in my code so I would like to avoid that if possible, though maybe I can hijack and wrap that function with a setTimeout.)
Thanks for any feedback!
Background:
[1] https://stackoverflow.com/questions/14533585/jqueryui-dialog-firefox-asp-net-access-to-strict-mode-caller-function-is-c
[2] https://stackoverflow.com/questions/27545418/post-back-not-working-in-firefox-for-asp-netc-pages/36867843#36867843