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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 23498010: Use quotes that Emacs can deal with. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index 06c9420cc5416e3f8b4b05464f532fab0c0754b0..fe7824b06569f154f7153f4bcdc0cc3dd9d30529 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -2940,9 +2940,9 @@ class CodeEmitterTask extends CompilerTask {
// onload event of all script tags and getting the first script which
// finishes. Since onload is called immediately after execution this should
// not substantially change execution order.
- buffer.write("""
+ buffer.write('''
;(function (callback) {
- if (typeof document === 'undefined') {
+ if (typeof document === "undefined") {
callback(null);
return;
}
@@ -2954,18 +2954,18 @@ class CodeEmitterTask extends CompilerTask {
var scripts = document.scripts;
function onLoad(event) {
for (var i = 0; i < scripts.length; ++i) {
- scripts[i].removeEventListener('load', onLoad, false);
+ scripts[i].removeEventListener("load", onLoad, false);
}
callback(event.target);
}
for (var i = 0; i < scripts.length; ++i) {
- scripts[i].addEventListener('load', onLoad, false);
+ scripts[i].addEventListener("load", onLoad, false);
}
})(function(currentScript) {
${namer.isolateName}.${namer.isolatePropertiesName}.\$currentScript =
currentScript;
- if (typeof console !== 'undefined' && typeof document !== 'undefined' &&
+ if (typeof console !== "undefined" && typeof document !== "undefined" &&
document.readyState == "loading") {
console.warn("Dart script executed synchronously, use <script src='" +
currentScript.src + "' defer></scr" + "ipt> to execute after parsing " +
@@ -2976,7 +2976,7 @@ class CodeEmitterTask extends CompilerTask {
} else {
${mainCall};
}
-})$N""");
+})$N''');
addComment('END invoke [main].', buffer);
}
« 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