diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-03-20 10:05:23 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-20 10:07:06 +0100 |
commit | 7197b308fb97cd8ab7a972df6a3a17a7a265b594 (patch) | |
tree | e6a36f10a28710bac1b901915a643ce398580cdf /devtools/server/actors/object.js | |
parent | 173a526ec0bedec17f35cc838b9c7d47a5ce13b7 (diff) | |
parent | a413cf72888dcb5197ba44aba547b8d496231cff (diff) | |
download | UXP-7197b308fb97cd8ab7a972df6a3a17a7a265b594.tar UXP-7197b308fb97cd8ab7a972df6a3a17a7a265b594.tar.gz UXP-7197b308fb97cd8ab7a972df6a3a17a7a265b594.tar.lz UXP-7197b308fb97cd8ab7a972df6a3a17a7a265b594.tar.xz UXP-7197b308fb97cd8ab7a972df6a3a17a7a265b594.zip |
Make RegExp.prototype return a regular object instead of an instance.
This resolves #77.
Merged remote-tracking branch 'janek/js_regexp_ordinary-object_1'
Diffstat (limited to 'devtools/server/actors/object.js')
-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; |