Bug 1290337 - Part 13: Replace Value parameter to const Value& in finalizeInBackground. r=sfink
This commit is contained in:
@@ -667,7 +667,7 @@ class nsOuterWindowProxy : public js::Wrapper
|
||||
public:
|
||||
constexpr nsOuterWindowProxy() : js::Wrapper(0) { }
|
||||
|
||||
virtual bool finalizeInBackground(JS::Value priv) const override {
|
||||
virtual bool finalizeInBackground(const JS::Value& priv) const override {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11633,7 +11633,7 @@ class CGDOMJSProxyHandler_className(ClassMethod):
|
||||
|
||||
class CGDOMJSProxyHandler_finalizeInBackground(ClassMethod):
|
||||
def __init__(self, descriptor):
|
||||
args = [Argument('JS::Value', 'priv')]
|
||||
args = [Argument('const JS::Value&', 'priv')]
|
||||
ClassMethod.__init__(self, "finalizeInBackground", "bool", args,
|
||||
virtual=True, override=True, const=True)
|
||||
self.descriptor = descriptor
|
||||
|
||||
@@ -93,7 +93,7 @@ class CPOWProxyHandler : public BaseProxyHandler
|
||||
constexpr CPOWProxyHandler()
|
||||
: BaseProxyHandler(&family) {}
|
||||
|
||||
virtual bool finalizeInBackground(Value priv) const override {
|
||||
virtual bool finalizeInBackground(const Value& priv) const override {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ class JS_FRIEND_API(BaseProxyHandler)
|
||||
return offsetof(BaseProxyHandler, mFamily);
|
||||
}
|
||||
|
||||
virtual bool finalizeInBackground(Value priv) const {
|
||||
virtual bool finalizeInBackground(const Value& priv) const {
|
||||
/*
|
||||
* Called on creation of a proxy to determine whether its finalize
|
||||
* method can be finalized on the background thread.
|
||||
|
||||
@@ -66,7 +66,7 @@ class JS_FRIEND_API(Wrapper) : public BaseProxyHandler
|
||||
mFlags(aFlags)
|
||||
{ }
|
||||
|
||||
virtual bool finalizeInBackground(Value priv) const override;
|
||||
virtual bool finalizeInBackground(const Value& priv) const override;
|
||||
|
||||
/* Standard internal methods. */
|
||||
virtual bool getOwnPropertyDescriptor(JSContext* cx, HandleObject proxy, HandleId id,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
using namespace js;
|
||||
|
||||
bool
|
||||
Wrapper::finalizeInBackground(Value priv) const
|
||||
Wrapper::finalizeInBackground(const Value& priv) const
|
||||
{
|
||||
if (!priv.isObject())
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user