webengine/osswebengine/JavaScriptCore/bindings/runtime_method.cpp
branchRCL_3
changeset 47 e1bea15f9a39
parent 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
46:30342f40acbf 47:e1bea15f9a39
    73         imp = static_cast<RuntimeObjectImp*>(thisObj);
    73         imp = static_cast<RuntimeObjectImp*>(thisObj);
    74     } else {
    74     } else {
    75         // If thisObj is the DOM object for a plugin, get the corresponding
    75         // If thisObj is the DOM object for a plugin, get the corresponding
    76         // runtime object from the DOM object.
    76         // runtime object from the DOM object.
    77         JSValue* value = thisObj->get(exec, "__apple_runtime_object");
    77         JSValue* value = thisObj->get(exec, "__apple_runtime_object");
    78         if (value->isObject(&KJS::RuntimeObjectImp::info))    
    78         if (value && value->isObject(&KJS::RuntimeObjectImp::info))    
    79             imp = static_cast<RuntimeObjectImp*>(value);
    79             imp = static_cast<RuntimeObjectImp*>(value);
    80     }
    80     }
    81 
    81 
    82     if (!imp)
    82     if (!imp)
    83         return throwError(exec, TypeError);
    83         return throwError(exec, TypeError);