Implement global eval
-
John-David Dalton
Possible patch from August 08 (it needs revision :D) https://gist.github.com/024e53e62714b9d1219f
-
Juriy Zaytsev
Yeah. Looks a little too magical to me : )
- Need to ditch
arguments.callee arguments.callee.lastReturn = undefined;is redundant- need to break
(script = document.createElement('script')).type = 'text/javascript';apart - some values are returned, while others aren't (e.g. 'var x=1; x;'.eval()). Maybe we shouldn't shoot ourselves in the foot by trying to parse string and return value?
- I see
document.write, but what happens when document is served as xml? document.writeinserts script withidwhich is kind of an invalid html. Can we avoid that?
- Need to ditch
-
John-David Dalton
If the code executes in an iframe won't that defeat the purpose of a global eval because it wont be able to access the properties of the primary window without doing something like
parent.blah? -
John-David Dalton
- State changed from new to resolved
- Milestone order changed from 0 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.