diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 10:47:16 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 10:47:16 +0100 |
commit | 3114d48cee98c43c5d980eccfc104854860ef2be (patch) | |
tree | 10821b466f5add20f4d74125b0b8705e63fb94c9 /devtools | |
parent | 9384b08d877055a806bd61b2a3632897dfe4bbd8 (diff) | |
download | UXP-3114d48cee98c43c5d980eccfc104854860ef2be.tar UXP-3114d48cee98c43c5d980eccfc104854860ef2be.tar.gz UXP-3114d48cee98c43c5d980eccfc104854860ef2be.tar.lz UXP-3114d48cee98c43c5d980eccfc104854860ef2be.tar.xz UXP-3114d48cee98c43c5d980eccfc104854860ef2be.zip |
Handle RegExp correctly in devtools
Issue #77
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/server/actors/object.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/devtools/server/actors/object.js b/devtools/server/actors/object.js index 1f417b951..06e95a5f0 100644 --- a/devtools/server/actors/object.js +++ b/devtools/server/actors/object.js @@ -1158,11 +1158,6 @@ DebuggerServer.ObjectActorPreviewers = { }], RegExp: [function ({obj, hooks}, grip) { - // Avoid having any special preview for the RegExp.prototype itself. - if (!obj.proto || obj.proto.class != "RegExp") { - return false; - } - let str = RegExp.prototype.toString.call(obj.unsafeDereference()); grip.displayString = hooks.createValueGrip(str); return true; |