Changeset 156602 in webkit for trunk/Source/JavaScriptCore/runtime/Arguments.cpp
- Timestamp:
- Sep 28, 2013, 7:15:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Arguments.cpp
r156229 r156602 107 107 return; 108 108 109 VM& vm = exec->vm(); 109 110 m_overrodeCaller = true; 110 111 PropertyDescriptor descriptor; 111 descriptor.setAccessorDescriptor(globalObject()->throwTypeErrorGetterSetter( exec), DontEnum | DontDelete | Accessor);112 methodTable()->defineOwnProperty(this, exec, exec->propertyNames().caller, descriptor, false);112 descriptor.setAccessorDescriptor(globalObject()->throwTypeErrorGetterSetter(vm), DontEnum | DontDelete | Accessor); 113 methodTable()->defineOwnProperty(this, exec, vm.propertyNames->caller, descriptor, false); 113 114 } 114 115 … … 117 118 if (m_overrodeCallee) 118 119 return; 119 120 121 VM& vm = exec->vm(); 120 122 m_overrodeCallee = true; 121 123 PropertyDescriptor descriptor; 122 descriptor.setAccessorDescriptor(globalObject()->throwTypeErrorGetterSetter( exec), DontEnum | DontDelete | Accessor);123 methodTable()->defineOwnProperty(this, exec, exec->propertyNames().callee, descriptor, false);124 descriptor.setAccessorDescriptor(globalObject()->throwTypeErrorGetterSetter(vm), DontEnum | DontDelete | Accessor); 125 methodTable()->defineOwnProperty(this, exec, vm.propertyNames->callee, descriptor, false); 124 126 } 125 127
Note:
See TracChangeset
for help on using the changeset viewer.