mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
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:
parent
78a2d6337e
commit
e58c1b171c
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user