Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Unified Diff: remoting/webapp/crd/js/typecheck.js

Issue 803653004: Update Chromoting to use /third_party/closure_compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused types Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/crd/js/typecheck.js
diff --git a/remoting/webapp/crd/js/typecheck.js b/remoting/webapp/crd/js/typecheck.js
index 5b5f86569ec02f9e47e8310035fa17f6dd16a53a..fa31f55a3cc8b66cf44c18d88777b49660e782d7 100644
--- a/remoting/webapp/crd/js/typecheck.js
+++ b/remoting/webapp/crd/js/typecheck.js
@@ -137,7 +137,7 @@ function getStringAttr(dict, key, opt_default) {
* @return {Object} The JSON object created from the |jsonString|.
*/
function getJsonObjectFromString(jsonString) {
- var value = /** @type {Object} */ JSON.parse(jsonString);
+ var value = base.jsonParseSafe(jsonString);
if (typeof value != 'object') {
throw 'Invalid data type (expected: Object, actual: ' + typeof value + ')';
}

Powered by Google App Engine
This is Rietveld 408576698