Bug 1114580 - Change ESClassValue to an enum class. r=jorendorff

This commit is contained in:
Tom Schuster
2016-06-30 00:04:56 +02:00
parent 091656144c
commit 88135ce2c1
32 changed files with 143 additions and 137 deletions

View File

@@ -490,7 +490,7 @@ bool
WrapperAnswer::RecvGetBuiltinClass(const ObjectId& objId, ReturnStatus* rs,
uint32_t* classValue)
{
*classValue = js::ESClass_Other;
*classValue = uint32_t(js::ESClass::Other);
AutoJSAPI jsapi;
if (NS_WARN_IF(!jsapi.Init(scopeForTargetObjects())))
@@ -503,11 +503,11 @@ WrapperAnswer::RecvGetBuiltinClass(const ObjectId& objId, ReturnStatus* rs,
LOG("%s.getBuiltinClass()", ReceiverObj(objId));
js::ESClassValue cls;
js::ESClass cls;
if (!js::GetBuiltinClass(cx, obj, &cls))
return fail(jsapi, rs);
*classValue = cls;
*classValue = uint32_t(cls);
return ok(rs);
}