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

Unified Diff: chrome/renderer/resources/event_bindings.js

Issue 2796005: Merge 48843 - Change 'const' to 'var' in event_bindings.js for ECMAScript com... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/375/src/
Patch Set: Created 10 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/event_bindings.js
===================================================================
--- chrome/renderer/resources/event_bindings.js (revision 49571)
+++ chrome/renderer/resources/event_bindings.js (working copy)
@@ -9,14 +9,14 @@
native function DetachEvent(eventName);
var chromeHidden = GetChromeHidden();
-
+
// Local implementation of JSON.parse & JSON.stringify that protect us
// from being clobbered by an extension.
chromeHidden.JSON = new (function() {
- const $Object = Object;
- const $Array = Array;
- const $jsonStringify = JSON.stringify;
- const $jsonParse = JSON.parse;
+ var $Object = Object;
+ var $Array = Array;
+ var $jsonStringify = JSON.stringify;
+ var $jsonParse = JSON.parse;
this.stringify = function(thing) {
var customizedObjectToJSON = $Object.prototype.toJSON;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698