Index: chrome/browser/resources/chromeos/chromevox/common/chromevox_json.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/common/chromevox_json.js b/chrome/browser/resources/chromeos/chromevox/common/chromevox_json.js |
index 96c78ca9f31ed05da13d6217c3e39d17f5846233..6f65d54f1816a2755d3cd53003e0602adf0e5b40 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/common/chromevox_json.js |
+++ b/chrome/browser/resources/chromeos/chromevox/common/chromevox_json.js |
@@ -55,9 +55,9 @@ if (window.JSON && window.JSON.toString() == '[object JSON]') { |
f(this.getUTCSeconds()) + 'Z' : 'null'; |
}; |
- String.prototype.toJSON = |
+ Boolean.prototype.toJSON = |
hidehiko
2017/03/21 03:43:23
nit: ditto. Unnecessary change?
David Tseng
2017/03/21 16:41:16
This is actually needed. It fixes a presubmit erro
|
Number.prototype.toJSON = |
- Boolean.prototype.toJSON = function(key) { |
+ String.prototype.toJSON = function(key) { |
return /** @type {string} */ (this.valueOf()); |
}; |
} |