Bug 795768 (part 1) - Remove lots of dead JSContext* occurrences.
This commit is contained in:
@@ -1162,7 +1162,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
|
||||
class SingleStringPredicate {
|
||||
Handle<JSFlatString*> str;
|
||||
public:
|
||||
SingleStringPredicate(JSContext *cx, Handle<JSFlatString*> str) : str(str) {}
|
||||
SingleStringPredicate(Handle<JSFlatString*> str) : str(str) {}
|
||||
|
||||
bool operator()(JSFlatString *str) { return EqualStrings(str, this->str); }
|
||||
bool matchesAtMostOne() { return true; }
|
||||
@@ -1174,7 +1174,7 @@ js_SuppressDeletedProperty(JSContext *cx, HandleObject obj, jsid id)
|
||||
Rooted<JSFlatString*> str(cx, IdToString(cx, id));
|
||||
if (!str)
|
||||
return false;
|
||||
return SuppressDeletedPropertyHelper(cx, obj, SingleStringPredicate(cx, str));
|
||||
return SuppressDeletedPropertyHelper(cx, obj, SingleStringPredicate(str));
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user