Ejemplo n.º 1
0
EncodedJSValue JSC_HOST_CALL jsNavigatorPrototypeFunctionGetStorageUpdates(ExecState* exec)
{
    JSValue thisValue = exec->hostThisValue();
    if (!thisValue.inherits(&JSNavigator::s_info))
        return throwVMTypeError(exec);
    JSNavigator* castedThis = static_cast<JSNavigator*>(asObject(thisValue));
    ASSERT_GC_OBJECT_INHERITS(castedThis, &JSNavigator::s_info);
    Navigator* imp = static_cast<Navigator*>(castedThis->impl());

    imp->getStorageUpdates();
    return JSValue::encode(jsUndefined());
}
static v8::Handle<v8::Value> getStorageUpdatesCallback(const v8::Arguments& args)
{
    Navigator* imp = V8Navigator::toNative(args.Holder());
    imp->getStorageUpdates();
    return v8Undefined();
}