Bug 1394992 - Remove workaround for bug 1163520. r=bgrins
authorJim Blandy <jimb@mozilla.com>
Tue, 29 Aug 2017 16:41:31 -0700
changeset 428617 4e6c69e3227cf6132792b3725531155d9c53adad
parent 428616 33e34e8290927b41a59cf66ab9fac3150283236e
child 428618 34767394af0d91775da40b54e2f5a21083631c3f
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1394992, 1163520
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1394992 - Remove workaround for bug 1163520. r=bgrins
devtools/server/actors/object.js
--- a/devtools/server/actors/object.js
+++ b/devtools/server/actors/object.js
@@ -116,18 +116,17 @@ ObjectActor.prototype = {
       // FF40+: Allow to know how many properties an object has
       // to lazily display them when there is a bunch.
       // Throws on some MouseEvent object in tests.
       try {
         if (TYPED_ARRAY_CLASSES.indexOf(g.class) != -1) {
           // Bug 1348761: getOwnPropertyNames is unecessary slow on TypedArrays
           let length = DevToolsUtils.getProperty(this.obj, "length");
           g.ownPropertyLength = length;
-        } else if (!["Function", "Proxy"].includes(g.class)) {
-          // Bug 1163520: Assert on internal functions
+        } else if (g.class != "Proxy") {
           g.ownPropertyLength = this.obj.getOwnPropertyNames().length;
         }
       } catch (e) {
         // ignored
       }
 
       let raw = this.obj.unsafeDereference();