Changeset 33980 in webkit
- Timestamp:
- May 21, 2008 6:21:18 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r33979 r33980 1 2008-05-21 Geoffrey Garen <ggaren@apple.com> 2 3 Reviewed by Mark Rowe. 4 5 Fix layout test failure in fast/dom/getter-on-window-object2 introduced in r33961. 6 7 * JavaScriptCore.exp: 8 * kjs/JSGlobalObject.cpp: 9 (KJS::JSGlobalObject::defineGetter): 10 (KJS::JSGlobalObject::defineSetter): 11 * kjs/JSGlobalObject.h: 12 1 13 === End merge of squirrelfish === 2 14 -
trunk/JavaScriptCore/JavaScriptCore.exp
r33979 r33980 113 113 __ZN3KJS13jsOwnedStringERKNS_7UStringE 114 114 __ZN3KJS14JSGlobalObject10globalExecEv 115 __ZN3KJS14JSGlobalObject12defineGetterEPNS_9ExecStateERKNS_10IdentifierEPNS_8JSObjectE 116 __ZN3KJS14JSGlobalObject12defineSetterEPNS_9ExecStateERKNS_10IdentifierEPNS_8JSObjectE 115 117 __ZN3KJS14JSGlobalObject16stopTimeoutCheckEv 116 118 __ZN3KJS14JSGlobalObject17putWithAttributesEPNS_9ExecStateERKNS_10IdentifierEPNS_7JSValueEj … … 199 201 __ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_4ListE 200 202 __ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_4ListERKNS_10IdentifierERKNS_7UStringEi 203 __ZN3KJS8Profiler13stopProfilingEPNS_9ExecStateERKNS_7UStringE 204 __ZN3KJS8Profiler14startProfilingEPNS_9ExecStateERKNS_7UStringE 201 205 __ZN3KJS8Profiler8profilerEv 202 206 __ZN3KJS8jsStringEPKc … … 208 212 __ZN3KJS9Collector23collectOnMainThreadOnlyEPNS_7JSValueE 209 213 __ZN3KJS9Collector25protectedObjectTypeCountsEv 210 __ZN3KJS8Profiler13stopProfilingEPNS_9ExecStateERKNS_7UStringE211 __ZN3KJS8Profiler14startProfilingEPNS_9ExecStateERKNS_7UStringE212 214 __ZN3KJS9Collector26protectedGlobalObjectCountEv 213 215 __ZN3KJS9Collector4sizeEv -
trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
r33979 r33980 235 235 } 236 236 237 void JSGlobalObject::defineGetter(ExecState* exec, const Identifier& propertyName, JSObject* getterFunc) 238 { 239 PropertySlot slot; 240 if (!symbolTableGet(propertyName, slot)) 241 JSVariableObject::defineGetter(exec, propertyName, getterFunc); 242 } 243 244 void JSGlobalObject::defineSetter(ExecState* exec, const Identifier& propertyName, JSObject* setterFunc) 245 { 246 PropertySlot slot; 247 if (!symbolTableGet(propertyName, slot)) 248 JSVariableObject::defineSetter(exec, propertyName, setterFunc); 249 } 250 237 251 static inline JSObject* lastInPrototypeChain(JSObject* object) 238 252 { -
trunk/JavaScriptCore/kjs/JSGlobalObject.h
r33979 r33980 172 172 virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue* value, unsigned attributes); 173 173 174 175 virtual void defineGetter(ExecState*, const Identifier& propertyName, JSObject* getterFunc); 176 virtual void defineSetter(ExecState*, const Identifier& propertyName, JSObject* setterFunc); 177 174 178 // Linked list of all global objects. 175 179 static JSGlobalObject* head() { return s_head; } -
trunk/LayoutTests/ChangeLog
r33979 r33980 1 2008-05-21 Geoffrey Garen <ggaren@apple.com> 2 3 Reviewed by Mark Rowe. 4 5 Update results. 6 7 * fast/dom/getter-on-window-object2-expected.txt: 8 1 9 === End merge of squirrelfish === 2 10 -
trunk/LayoutTests/fast/dom/getter-on-window-object2-expected.txt
r30635 r33980 2 2 3 3 window.x is: 1 4 typeof window.__lookupGetter__("x") is: function4 typeof window.__lookupGetter__("x") is: undefined 5 5 window.x is: 2 6 typeof window.__lookupSetter__("x") is: function6 typeof window.__lookupSetter__("x") is: undefined 7 7 window.y is: window.y __getter__ 8 8 typeof window.__lookupGetter__("y") is: function
Note: See TracChangeset
for help on using the changeset viewer.