-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting eval breaks everyone's client #3
Comments
I had a try at this, but ultimately failed to find a way that works for IE. I tried sandbox = {eval: window.eval} or similar for IE, but for some reason, when IE is doing an indirect eval, it swallows the exceptions and either shows them in a popup dialog, or in the developer tools console only. If anyone has a better idea please let me know. |
Before running an |
Fixed in ac75e96 |
Oops! Spoke too soon. That broke exceptions on IE too. Reverted. Michael: your solution would give the wrong value for 'eval' when referenced - it would always return the actual eval function as supposed to the assigned value. |
Are you saying you want to keep proper semantics when people assign to |
That's the thing that doesn't work. When I do that, IE will have the weird behavior wrt exceptions that I mentioned. |
window.eval = eval = function(){}
makes everyones client stop evaluating until they refresh. I don't even want to know what happens when you set it to a non-function.The text was updated successfully, but these errors were encountered: