Web Inspector: Drop forEach from WeakMap / WeakSet native member function maps
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Jun 2015 03:27:20 +0000 (03:27 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Jun 2015 03:27:20 +0000 (03:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=145497

Reviewed by Sam Weinig.

WeakMap / WeakSet don't have forEach method.
This patch drops it from the native prototype function parameters map.

* UserInterface/Models/NativeFunctionParameters.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185054 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js

index e0c6c62..ef9dfea 100644 (file)
@@ -1,3 +1,15 @@
+2015-05-31  Yusuke Suzuki  <utatane.tea@gmail.com>
+
+        Web Inspector: Drop forEach from WeakMap / WeakSet native member function maps
+        https://bugs.webkit.org/show_bug.cgi?id=145497
+
+        Reviewed by Sam Weinig.
+
+        WeakMap / WeakSet don't have forEach method.
+        This patch drops it from the native prototype function parameters map.
+
+        * UserInterface/Models/NativeFunctionParameters.js:
+
 2015-05-29  Timothy Hatcher  <timothy@apple.com>
 
         Web Inspector: Resources tab navigation sidebar should have a type filter header
index 049fbaf..da02c98 100644 (file)
@@ -324,6 +324,21 @@ WebInspector.NativePrototypeFunctionParameters = {
         __proto__: null,
     },
 
+    WeakMap: {
+        delete: "key",
+        get: "key",
+        has: "key",
+        set: "key, value",
+        __proto__: null,
+    },
+
+    WeakSet: {
+        delete: "value",
+        has: "value",
+        add: "value",
+        __proto__: null,
+    },
+
     Promise: {
         catch: "rejectionHandler",
         then: "resolvedHandler, rejectionHandler",
@@ -2073,9 +2088,6 @@ WebInspector.NativePrototypeFunctionParameters = {
     },
 };
 
-WebInspector.NativePrototypeFunctionParameters.WeakMap = WebInspector.NativePrototypeFunctionParameters.Map;
-WebInspector.NativePrototypeFunctionParameters.WeakSet = WebInspector.NativePrototypeFunctionParameters.Set;
-
 (function() {
     var EventTarget = {
         addEventListener: "type, listener, [useCapture=false]",