Bug 906940 - Exactly root the IsAcceptableThis callback; r=jonco,smaug

This commit is contained in:
Terrence Cole
2013-05-28 11:23:04 -07:00
parent 8fed0e0368
commit b3904f1033
17 changed files with 51 additions and 42 deletions

View File

@@ -763,7 +763,7 @@ js::IteratorConstructor(JSContext *cx, unsigned argc, Value *vp)
}
JS_ALWAYS_INLINE bool
IsIterator(const Value &v)
IsIterator(HandleValue v)
{
return v.isObject() && v.toObject().hasClass(&PropertyIteratorObject::class_);
}
@@ -876,7 +876,7 @@ ElementIteratorObject::create(JSContext *cx, Handle<Value> target)
}
static bool
IsElementIterator(const Value &v)
IsElementIterator(HandleValue v)
{
return v.isObject() && v.toObject().is<ElementIteratorObject>();
}
@@ -1633,7 +1633,7 @@ CloseGenerator(JSContext *cx, HandleObject obj)
}
JS_ALWAYS_INLINE bool
IsGenerator(const Value &v)
IsGenerator(HandleValue v)
{
return v.isObject() && v.toObject().is<GeneratorObject>();
}