OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 /** @suppress {duplicate} */ | 6 /** @suppress {duplicate} */ |
7 var remoting = remoting || {}; | 7 var remoting = remoting || {}; |
8 | 8 |
9 (function() { | 9 (function() { |
10 'use strict'; | 10 'use strict'; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 * exception will be thrown. | 240 * exception will be thrown. |
241 * | 241 * |
242 * @param {string} jsonString The JSON string to parse. | 242 * @param {string} jsonString The JSON string to parse. |
243 * @return {Object} The JSON object created from the |jsonString|. | 243 * @return {Object} The JSON object created from the |jsonString|. |
244 */ | 244 */ |
245 base.getJsonObjectFromString = function(jsonString) { | 245 base.getJsonObjectFromString = function(jsonString) { |
246 return base.assertObject(base.jsonParseSafe(jsonString)); | 246 return base.assertObject(base.jsonParseSafe(jsonString)); |
247 }; | 247 }; |
248 | 248 |
249 })(); | 249 })(); |
OLD | NEW |