| Index: third_party/WebKit/Source/devtools/front_end/common/OutputStream.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/common/OutputStream.js b/third_party/WebKit/Source/devtools/front_end/common/OutputStream.js
|
| index b398a2945b7902fa025faebb18daa689b68d0b2b..123e2a7b3b4e9d0e367d077f8654acd83e598d2b 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/common/OutputStream.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/common/OutputStream.js
|
| @@ -1,56 +1,49 @@
|
| // Copyright 2015 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| -
|
| /**
|
| * @interface
|
| */
|
| -WebInspector.OutputStream = function()
|
| -{
|
| -};
|
| +WebInspector.OutputStream = function() {};
|
|
|
| WebInspector.OutputStream.prototype = {
|
| - /**
|
| - * @param {string} data
|
| - * @param {function(!WebInspector.OutputStream)=} callback
|
| - */
|
| - write: function(data, callback) { },
|
| + /**
|
| + * @param {string} data
|
| + * @param {function(!WebInspector.OutputStream)=} callback
|
| + */
|
| + write: function(data, callback) {},
|
|
|
| - close: function() { }
|
| + close: function() {}
|
| };
|
|
|
| /**
|
| - * @constructor
|
| * @implements {WebInspector.OutputStream}
|
| + * @unrestricted
|
| */
|
| -WebInspector.StringOutputStream = function()
|
| -{
|
| - this._data = "";
|
| -};
|
| +WebInspector.StringOutputStream = class {
|
| + constructor() {
|
| + this._data = '';
|
| + }
|
|
|
| -WebInspector.StringOutputStream.prototype = {
|
| - /**
|
| - * @override
|
| - * @param {string} chunk
|
| - * @param {function(!WebInspector.OutputStream)=} callback
|
| - */
|
| - write: function(chunk, callback)
|
| - {
|
| - this._data += chunk;
|
| - },
|
| + /**
|
| + * @override
|
| + * @param {string} chunk
|
| + * @param {function(!WebInspector.OutputStream)=} callback
|
| + */
|
| + write(chunk, callback) {
|
| + this._data += chunk;
|
| + }
|
|
|
| - /**
|
| - * @override
|
| - */
|
| - close: function()
|
| - {
|
| - },
|
| + /**
|
| + * @override
|
| + */
|
| + close() {
|
| + }
|
|
|
| - /**
|
| - * @return {string}
|
| - */
|
| - data: function()
|
| - {
|
| - return this._data;
|
| - }
|
| + /**
|
| + * @return {string}
|
| + */
|
| + data() {
|
| + return this._data;
|
| + }
|
| };
|
|
|