Bug 1013663 - Fix some bad implicit conversion constructors in the JS engine; r=jorendorff,jandem

This commit is contained in:
Ehsan Akhgari
2014-05-25 21:46:24 -04:00
parent 5bcd509591
commit 5292a10a42
188 changed files with 847 additions and 837 deletions

View File

@@ -385,7 +385,7 @@ static inline PropertyIteratorObject *
NewPropertyIteratorObject(JSContext *cx, unsigned flags)
{
if (flags & JSITER_ENUMERATE) {
RootedTypeObject type(cx, cx->getNewType(&PropertyIteratorObject::class_, nullptr));
RootedTypeObject type(cx, cx->getNewType(&PropertyIteratorObject::class_, TaggedProto(nullptr)));
if (!type)
return nullptr;
@@ -394,7 +394,7 @@ NewPropertyIteratorObject(JSContext *cx, unsigned flags)
return nullptr;
const Class *clasp = &PropertyIteratorObject::class_;
RootedShape shape(cx, EmptyShape::getInitialShape(cx, clasp, nullptr, nullptr, metadata,
RootedShape shape(cx, EmptyShape::getInitialShape(cx, clasp, TaggedProto(nullptr), nullptr, metadata,
ITERATOR_FINALIZE_KIND));
if (!shape)
return nullptr;
@@ -1121,7 +1121,7 @@ namespace {
class SingleStringPredicate {
Handle<JSFlatString*> str;
public:
SingleStringPredicate(Handle<JSFlatString*> str) : str(str) {}
explicit SingleStringPredicate(Handle<JSFlatString*> str) : str(str) {}
bool operator()(JSFlatString *str) { return EqualStrings(str, this->str); }
bool matchesAtMostOne() { return true; }