| Index: tracing/tracing/mre/file_handle.html
|
| diff --git a/tracing/tracing/mre/file_handle.html b/tracing/tracing/mre/file_handle.html
|
| index 8caa68feff5e03eba97c37944b9073319b980556..9e04e55c0113eec5278726d43603aca91453b1b0 100644
|
| --- a/tracing/tracing/mre/file_handle.html
|
| +++ b/tracing/tracing/mre/file_handle.html
|
| @@ -28,8 +28,9 @@ tr.exportTo('tr.mre', function() {
|
| };
|
|
|
| this._asDictInto(d);
|
| - if (d.type === undefined)
|
| + if (d.type === undefined) {
|
| throw new Error('_asDictInto must set type field');
|
| + }
|
| },
|
|
|
| load: function() {
|
| @@ -38,10 +39,12 @@ tr.exportTo('tr.mre', function() {
|
| };
|
|
|
| FileHandle.fromDict = function(handleDict) {
|
| - if (handleDict.type === 'url')
|
| + if (handleDict.type === 'url') {
|
| return URLFileHandle.fromDict(handleDict);
|
| - if (handleDict.type === 'in-memory')
|
| + }
|
| + if (handleDict.type === 'in-memory') {
|
| return InMemoryFileHandle.fromDict(handleDict);
|
| + }
|
|
|
| throw new Error('Not implemented: fromDict for ' + handleDict.type);
|
| };
|
|
|