mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-27 01:38:39 +09:00
Issue #2142 - Change InitPropertyOperation to accept a PropertyName directy and use DefineDataProperty
Based-on: m-c 1413907, 1547129
This commit is contained in:
parent
6f56a494e6
commit
627d0da7dc
4 changed files with 11 additions and 12 deletions
|
|
@ -232,8 +232,7 @@ bool
|
|||
InitProp(JSContext* cx, HandleObject obj, HandlePropertyName name, HandleValue value,
|
||||
jsbytecode* pc)
|
||||
{
|
||||
RootedId id(cx, NameToId(name));
|
||||
return InitPropertyOperation(cx, JSOp(*pc), obj, id, value);
|
||||
return InitPropertyOperation(cx, JSOp(*pc), obj, name, value);
|
||||
}
|
||||
|
||||
template<bool Equal>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue