Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/compat.js

Issue 29345518: Issue 4090 - Don't use let statements in compat.js, unsupported in older Chrome versions (Closed)
Patch Set: Created June 2, 2016, 3:45 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
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: lib/compat.js
===================================================================
--- a/lib/compat.js
+++ b/lib/compat.js
@@ -16,17 +16,17 @@
*/
//
// Module framework stuff
//
function require(module)
{
- let result = require.scopes[module];
+ var result = require.scopes[module];
if (typeof result == "function" && !(module in require.loaded))
{
result = require.scopes[module] = result();
require.loaded[module] = true;
}
return result;
}
require.loaded = Object.create(null);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld