Changeset 77151 in webkit for trunk/Source/JavaScriptCore/API/JSObjectRef.cpp
- Timestamp:
- Jan 31, 2011, 12:07:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSObjectRef.cpp
r77113 r77151 109 109 110 110 JSCallbackConstructor* constructor = new (exec) JSCallbackConstructor(exec->lexicalGlobalObject(), exec->lexicalGlobalObject()->callbackConstructorStructure(), jsClass, callAsConstructor); 111 constructor->putDirect(exec-> propertyNames().prototype, jsPrototype, DontEnum | DontDelete | ReadOnly);111 constructor->putDirect(exec->globalData(), exec->propertyNames().prototype, jsPrototype, DontEnum | DontDelete | ReadOnly); 112 112 return toRef(constructor); 113 113 } … … 386 386 Identifier name(propertyName->identifier(&exec->globalData())); 387 387 if (jsObject->inherits(&JSCallbackObject<JSGlobalObject>::info)) { 388 static_cast<JSCallbackObject<JSGlobalObject>*>(jsObject)->setPrivateProperty( name, jsValue);388 static_cast<JSCallbackObject<JSGlobalObject>*>(jsObject)->setPrivateProperty(exec->globalData(), name, jsValue); 389 389 return true; 390 390 } 391 391 if (jsObject->inherits(&JSCallbackObject<JSObjectWithGlobalObject>::info)) { 392 static_cast<JSCallbackObject<JSObjectWithGlobalObject>*>(jsObject)->setPrivateProperty( name, jsValue);392 static_cast<JSCallbackObject<JSObjectWithGlobalObject>*>(jsObject)->setPrivateProperty(exec->globalData(), name, jsValue); 393 393 return true; 394 394 }
Note:
See TracChangeset
for help on using the changeset viewer.