- JSFunction* function = JSFunction::create(exec, thisObj->globalObject(), entry->functionLength(), propertyName, entry->function(), entry->intrinsic());
- thisObj->putDirect(exec->globalData(), propertyName, function, entry->attributes());
- location = thisObj->getDirectLocation(exec->globalData(), propertyName);
+ thisObj->putDirectNativeFunction(
+ exec, thisObj->globalObject(), propertyName, entry->functionLength(),
+ entry->function(), entry->intrinsic(), entry->attributes());
+ offset = thisObj->getDirectOffset(exec->vm(), propertyName);
+ ASSERT(isValidOffset(offset));