Changeset 13960 in webkit
- Timestamp:
- Apr 18, 2006, 3:17:41 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r13877 r13960 1 2006-04-18 Eric Seidel <[email protected]> 2 3 Reviewed by ggaren. 4 5 Fix "new Function()" to correctly use lexical scoping. 6 Add ScopeChain::print() function for debugging. 7 <rdar://problem/4067864> REGRESSION (125-407): JavaScript failure on PeopleSoft REN Server 8 9 * kjs/function_object.cpp: 10 (FunctionObjectImp::construct): 11 * kjs/scope_chain.cpp: 12 (KJS::ScopeChain::print): 13 * kjs/scope_chain.h: 14 1 15 2006-04-14 James G. Speth <[email protected]> 2 16 -
trunk/JavaScriptCore/kjs/function_object.cpp
r13465 r13960 205 205 206 206 ScopeChain scopeChain; 207 scopeChain.push(exec-> dynamicInterpreter()->globalObject());207 scopeChain.push(exec->lexicalInterpreter()->globalObject()); 208 208 FunctionBodyNode *bodyNode = progNode.get(); 209 209 -
trunk/JavaScriptCore/kjs/scope_chain.cpp
r12949 r13960 22 22 #include "config.h" 23 23 #include "scope_chain.h" 24 #include "reference_list.h" 24 25 25 26 namespace KJS { … … 35 36 } 36 37 38 #ifndef NDEBUG 39 40 void ScopeChain::print(ExecState* exec) 41 { 42 ScopeChainIterator scopeEnd = end(); 43 for (ScopeChainIterator scopeIter = begin(); scopeIter != scopeEnd; ++scopeIter) { 44 JSObject* o = *scopeIter; 45 ReferenceList propList = o->propList(exec, false); 46 ReferenceListIterator propEnd = propList.end(); 47 48 fprintf(stderr, "----- [scope %p] -----\n", o); 49 for (ReferenceListIterator propIter = propList.begin(); propIter != propEnd; propIter++) { 50 Identifier name = propIter->getPropertyName(exec); 51 fprintf(stderr, "%s, ", name.ascii()); 52 } 53 fprintf(stderr, "\n"); 54 } 55 } 56 57 #endif 58 37 59 } // namespace KJS -
trunk/JavaScriptCore/kjs/scope_chain.h
r12317 r13960 28 28 29 29 class JSObject; 30 class ExecState; 30 31 31 32 class ScopeChainNode { … … 80 81 81 82 void mark(); 83 84 #ifndef NDEBUG 85 void print(ExecState*); 86 #endif 82 87 83 88 private: -
trunk/LayoutTests/ChangeLog
r13959 r13960 1 2006-04-18 Eric Seidel <[email protected]> 2 3 Reviewed by ggaren. 4 5 <rdar://problem/4067864> REGRESSION (125-407): JavaScript failure on PeopleSoft REN Server 6 7 * fast/js/lexical-lookup-in-function-constructor.html: Added. 8 * fast/js/resources/lexical-lookup-in-function-constructor-child.html: Added. 9 * fast/js/lexical-lookup-in-function-constructor-expected.txt: Added. 10 1 11 2006-04-18 Beth Dakin <[email protected]> 2 12
Note:
See TracChangeset
for help on using the changeset viewer.