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

Unified Diff: lib/polyfills/promise.js

Issue 29338529: Issue 3824 - Move "use strict" into IIFE for compatibility with Kitt (Closed)
Patch Set: Created March 17, 2016, 3:57 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 | « lib/polyfills/fetch.js ('k') | lib/polyfills/url.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/polyfills/promise.js
===================================================================
--- a/lib/polyfills/promise.js
+++ b/lib/polyfills/promise.js
@@ -15,10 +15,10 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-"use strict";
-
(function(global)
{
+ "use strict";
+
if ("Promise" in global)
return;
« no previous file with comments | « lib/polyfills/fetch.js ('k') | lib/polyfills/url.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld