summaryrefslogtreecommitdiff
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
parent9384b08d877055a806bd61b2a3632897dfe4bbd8 (diff)
downloaduxp-3114d48cee98c43c5d980eccfc104854860ef2be.tar.gz
Handle RegExp correctly in devtools
Issue #77
-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 1f417b9515..06e95a5f0e 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;