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

Unified Diff: sdk/lib/_internal/js_runtime/lib/constant_map.dart

Issue 2981483002: Use more single quotes in js_runtime (Closed)
Patch Set: Created 3 years, 5 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 | « sdk/lib/_internal/js_runtime/lib/async_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/core_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/constant_map.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/constant_map.dart b/sdk/lib/_internal/js_runtime/lib/constant_map.dart
index 618dc9604047bc255086c47c4a7e164be8688c6d..e127673d4fa9f4cab5916b77cfa167cc6bb0f16e 100644
--- a/sdk/lib/_internal/js_runtime/lib/constant_map.dart
+++ b/sdk/lib/_internal/js_runtime/lib/constant_map.dart
@@ -26,9 +26,9 @@ abstract class ConstantMap<K, V> implements Map<K, V> {
int length = 0;
for (var k in keys) {
var v = other[k];
- if (k != "__proto__") {
+ if (k != '__proto__') {
if (!jsHasOwnProperty(object, k)) length++;
- JS("void", "#[#] = #", object, k, v);
+ JS('void', '#[#] = #', object, k, v);
} else {
containsProto = true;
protoValue = v;
@@ -53,7 +53,7 @@ abstract class ConstantMap<K, V> implements Map<K, V> {
String toString() => Maps.mapToString(this);
static _throwUnmodifiable() {
- throw new UnsupportedError("Cannot modify unmodifiable Map");
+ throw new UnsupportedError('Cannot modify unmodifiable Map');
}
void operator []=(K key, V val) => _throwUnmodifiable();
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/async_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698