mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1396156 - Fix unused private field error when building AutoAssertNoGC as Beta. r=sfink
This commit is contained in:
parent
a2c208aafe
commit
c811ddba77
@ -526,14 +526,15 @@ class JS_PUBLIC_API(AutoRequireNoGC)
|
||||
*/
|
||||
class JS_PUBLIC_API(AutoAssertNoGC) : public AutoRequireNoGC
|
||||
{
|
||||
#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||
JSContext* cx_;
|
||||
|
||||
public:
|
||||
#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||
// This gets the context from TLS if it is not passed in.
|
||||
explicit AutoAssertNoGC(JSContext* cx = nullptr);
|
||||
~AutoAssertNoGC();
|
||||
#else
|
||||
public:
|
||||
explicit AutoAssertNoGC(JSContext* cx = nullptr) {}
|
||||
~AutoAssertNoGC() {}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user