Changeset 19203 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jan 28, 2007, 6:30:42 PM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r19193 r19203 1 2007-01-28 David Kilzer <[email protected]> 2 3 Reviewed by Darin. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=9815 6 JavaScript TypeError loading Dean Edwards' JS compressor/obfuscator 7 8 Creating a function using 'new Function()' was not setting its prototype with the 9 same flags as 'function() { }'. 10 11 Test: fast/js/function-prototype.html 12 13 * kjs/function_object.cpp: 14 (FunctionObjectImp::construct): Change flags from DontEnum|DontDelete|ReadOnly to 15 Internal|DontDelete to match FuncDeclNode::processFuncDecl() and 16 FuncExprNode::evaluate() in kjs/nodes.cpp. 17 1 18 2007-01-27 Geoffrey Garen <[email protected]> 2 19 -
trunk/JavaScriptCore/kjs/function_object.cpp
r17372 r19203 246 246 JSObject *prototype = objCons->construct(exec,List::empty()); 247 247 prototype->put(exec, constructorPropertyName, fimp, DontEnum|DontDelete|ReadOnly); 248 fimp->put(exec, prototypePropertyName, prototype, DontEnum|DontDelete|ReadOnly);248 fimp->put(exec, prototypePropertyName, prototype, Internal|DontDelete); 249 249 return fimp; 250 250 }
Note:
See TracChangeset
for help on using the changeset viewer.