mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
Skip redundant HasProperty in GetObjectClassName
This commit is contained in:
committed by
wraitii
parent
8c20405274
commit
83bf2eb22e
@@ -135,7 +135,7 @@ template<typename T>
|
||||
inline bool GetObjectClassName(const ScriptRequest& rq, JS::HandleObject obj, T& name)
|
||||
{
|
||||
JS::RootedValue constructor(rq.cx, JS::ObjectOrNullValue(JS_GetConstructor(rq.cx, obj)));
|
||||
return constructor.isObject() && Script::HasProperty(rq, constructor, "name") && Script::GetProperty(rq, constructor, "name", name);
|
||||
return constructor.isObject() && Script::GetProperty(rq, constructor, "name", name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user