Changeset 72063 in webkit for trunk/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- Nov 15, 2010, 10:05:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSFunction.cpp
r72050 r72063 283 283 { 284 284 if (!isHostFunction() && (mode == IncludeDontEnumProperties)) { 285 // Make sure prototype has been reified. 286 PropertySlot slot; 287 getOwnPropertySlot(exec, exec->propertyNames().prototype, slot); 288 285 289 propertyNames.add(exec->propertyNames().arguments); 286 290 propertyNames.add(exec->propertyNames().callee); … … 296 300 Base::put(exec, propertyName, value, slot); 297 301 return; 302 } 303 if (propertyName == exec->propertyNames().prototype) { 304 // Make sure prototype has been reified, such that it can only be overwritten 305 // following the rules set out in ECMA-262 8.12.9. 306 PropertySlot slot; 307 getOwnPropertySlot(exec, propertyName, slot); 298 308 } 299 309 if (jsExecutable()->isStrictMode()) {
Note:
See TracChangeset
for help on using the changeset viewer.