Bug 1133909 - Fix hazards revealed by adding in new GCPointers, r=terrence
This commit is contained in:
@@ -3614,7 +3614,8 @@ js::PrimitiveToObject(JSContext *cx, const Value &v)
|
||||
if (v.isBoolean())
|
||||
return BooleanObject::create(cx, v.toBoolean());
|
||||
MOZ_ASSERT(v.isSymbol());
|
||||
return SymbolObject::create(cx, v.toSymbol());
|
||||
RootedSymbol symbol(cx, v.toSymbol());
|
||||
return SymbolObject::create(cx, symbol);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user