equal
deleted
inserted
replaced
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); |