def METHOD_NAME(obj):
    if not obj.is_object():
        raise MakeError('TypeError',
                        'Object.getPrototypeOf called on non-object')
    return null if obj.prototype is None else obj.prototype