| Index: third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js b/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js
|
| index e40ccf40ca2caa2770506e41ab652b34163f0ec1..6ce9762d87c6ad3d797cadef1f882adb7cb5bc76 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js
|
| @@ -233,7 +233,7 @@ WebInspector.TempFile.prototype = {
|
| */
|
| WebInspector.DeferredTempFile = function(dirPath, name)
|
| {
|
| - /** @type {!Array.<!{strings: !Array.<string>, callback: function(number)}>} */
|
| + /** @type {!Array.<!{strings: !Array.<string>, callback: ?function(number)}>} */
|
| this._chunks = [];
|
| this._tempFile = null;
|
| this._isWriting = false;
|
| @@ -254,7 +254,7 @@ WebInspector.DeferredTempFile.prototype = {
|
| {
|
| if (this._finishCallback)
|
| throw new Error("No writes are allowed after close.");
|
| - this._chunks.push({strings: strings, callback: callback});
|
| + this._chunks.push({strings: strings, callback: callback || null});
|
| if (this._tempFile && !this._isWriting)
|
| this._writeNextChunk();
|
| },
|
|
|