Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Implement global eval

State: resolved
Milestone: none
Assigned to: John-David Dalton John-David Dalton

Activity

  1. John-David Dalton
  2. Juriy Zaytsev
    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.write inserts script with id which is kind of an invalid html. Can we avoid that?

    October 7th, 2009 @ 02:23 PM

  3. John-David Dalton
    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 ?

    February 28th, 2010 @ 05:45 PM

  4. John-David Dalton
    John-David Dalton
    • State changed from new to resolved
    • Milestone order changed from 0 to 0

    July 23rd, 2010 @ 01:54 PM

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.