summaryrefslogtreecommitdiffstats
path: root/devtools/server/actors
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-19 10:47:16 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-19 10:47:16 +0100
commit3114d48cee98c43c5d980eccfc104854860ef2be (patch)
tree10821b466f5add20f4d74125b0b8705e63fb94c9 /devtools/server/actors
parent9384b08d877055a806bd61b2a3632897dfe4bbd8 (diff)
downloadUXP-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/server/actors')
-rw-r--r--devtools/server/actors/object.js5
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;