Bug 1572898: Follow-up: Hack around devtools trying to JSON stringify SpecialPowers. r=bustage,test-only

MANUAL PUSH: Bustage fix.
This commit is contained in:
Kris Maglione 2019-08-14 14:47:42 -07:00
parent 78a2d6337e
commit e58c1b171c

View File

@ -161,6 +161,11 @@ class SpecialPowersAPI extends JSWindowActorChild {
this._extensionListeners = null;
}
// Hack around devtools sometimes trying to JSON stringify us.
toJSON() {
return {};
}
receiveMessage(message) {
switch (message.name) {
case "Assert":