Show
Ignore:
Timestamp:
09/13/07 07:50:22 (15 months ago)
Author:
antti
Message:

JavaScriptCore:

Reviewed by Maciej.


Small addition to previous path to cover
http://bugs.webkit.org/show_bug.cgi?id=11399
window.eval runs in the global scope of the calling window


Switch variable scope as well.

  • kjs/function.cpp: (KJS::GlobalFuncImp::callAsFunction):

LayoutTests:

Reviewed by Maciej.


Change test case to cover
http://bugs.webkit.org/show_bug.cgi?id=11399
too.

  • fast/js/window-eval-context-expected.txt:
  • fast/js/window-eval-context.html:
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r25534 r25535  
     12007-09-13  Antti Koivisto  <antti@apple.com> 
     2 
     3        Reviewed by Maciej. 
     4         
     5        Small addition to previous path to cover 
     6        http://bugs.webkit.org/show_bug.cgi?id=11399 
     7        window.eval runs in the global scope of the calling window 
     8         
     9        Switch variable scope as well. 
     10 
     11        * kjs/function.cpp: 
     12        (KJS::GlobalFuncImp::callAsFunction): 
     13 
    1142007-09-12  Antti Koivisto  <antti@apple.com> 
    215