Changeset 19203 in webkit
- Timestamp:
- Jan 28, 2007, 6:30:42 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r19193 r19203 1 2007-01-28 David Kilzer <ddkilzer@webkit.org> 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 <ggaren@apple.com> 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 } -
trunk/LayoutTests/ChangeLog
r19199 r19203 1 2007-01-28 David Kilzer <ddkilzer@webkit.org> 2 3 Reviewed by Darin. 4 5 - Test for http://bugs.webkit.org/show_bug.cgi?id=9815 6 JavaScript TypeError loading Dean Edwards' JS compressor/obfuscator 7 8 * fast/js/function-prototype-expected.txt: Added. 9 * fast/js/function-prototype.html: Added. 10 1 11 2007-01-28 Alexey Proskuryakov <ap@webkit.org> 2 12
Note:
See TracChangeset
for help on using the changeset viewer.