Title: [184820] trunk/Source/WebInspectorUI
- Revision
- 184820
- Author
- [email protected]
- Date
- 2015-05-22 23:31:04 -0700 (Fri, 22 May 2015)
Log Message
Web Inspector: Adopt Object.setPrototypeOf
https://bugs.webkit.org/show_bug.cgi?id=145335
Patch by Joseph Pecoraro <[email protected]> on 2015-05-22
Reviewed by Timothy Hatcher.
For a case that won't easily move to ES6 classes use Object.setPrototypeOf.
* UserInterface/Protocol/InspectorBackend.js:
(InspectorBackend.Command.create):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (184819 => 184820)
--- trunk/Source/WebInspectorUI/ChangeLog 2015-05-23 06:27:24 UTC (rev 184819)
+++ trunk/Source/WebInspectorUI/ChangeLog 2015-05-23 06:31:04 UTC (rev 184820)
@@ -1,5 +1,17 @@
2015-05-22 Joseph Pecoraro <[email protected]>
+ Web Inspector: Adopt Object.setPrototypeOf
+ https://bugs.webkit.org/show_bug.cgi?id=145335
+
+ Reviewed by Timothy Hatcher.
+
+ For a case that won't easily move to ES6 classes use Object.setPrototypeOf.
+
+ * UserInterface/Protocol/InspectorBackend.js:
+ (InspectorBackend.Command.create):
+
+2015-05-22 Joseph Pecoraro <[email protected]>
+
Web Inspector: Inline use once class names and remove some unused class names
https://bugs.webkit.org/show_bug.cgi?id=145334
Modified: trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorBackend.js (184819 => 184820)
--- trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorBackend.js 2015-05-23 06:27:24 UTC (rev 184819)
+++ trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorBackend.js 2015-05-23 06:31:04 UTC (rev 184820)
@@ -385,7 +385,7 @@
}
callable._instance = instance;
- callable.__proto__ = InspectorBackend.Command.prototype;
+ Object.setPrototypeOf(callable, InspectorBackend.Command.prototype);
return callable;
};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes