Implement global eval
Reported by Juriy Zaytsev | September 30th, 2009 @ 10:35 AM
Comments and changes to this ticket
-
John-David Dalton October 7th, 2009 @ 01:56 PM
Possible patch from August 08 (it needs revision :D) https://gist.github.com/024e53e62714b9d1219f
-
Juriy Zaytsev October 7th, 2009 @ 02:23 PM
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.write
inserts script withid
which is kind of an invalid html. Can we avoid that?
- Need to ditch
-
John-David Dalton February 28th, 2010 @ 05:45 PM
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 July 23rd, 2010 @ 01:54 PM
- 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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.