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 | 5654a0448bf1958b2872ca9e95ec95443db1be98 (patch) | |
tree | 10821b466f5add20f4d74125b0b8705e63fb94c9 /devtools | |
parent | baa1682c8481a8174ba701a7054567c8aa321242 (diff) | |
download | uxp-5654a0448bf1958b2872ca9e95ec95443db1be98.tar.gz |
Handle RegExp correctly in devtools
Issue mcp-graveyard/UXP#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 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; |