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

Unified Diff: tool/input_sdk/lib/html/dart2js/html_dart2js.dart

Issue 2113913003: don't use JS_CONST in dart:html (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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:
Download patch
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/tool/input_sdk/lib/html/dart2js/html_dart2js.dart b/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
index 1d4407bd3319bce10102472c62b0664454219acb..1023e073b171d03aaf08bc6478c76a160e41ad91 100644
--- a/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
+++ b/tool/input_sdk/lib/html/dart2js/html_dart2js.dart
@@ -42,7 +42,7 @@ import 'dart:web_gl' as gl;
import 'dart:web_gl' show RenderingContext;
import 'dart:web_sql';
import 'dart:_isolate_helper' show IsolateNatives;
-import 'dart:_foreign_helper' show JS, JS_INTERCEPTOR_CONSTANT, JS_CONST;
+import 'dart:_foreign_helper' show JS, JS_INTERCEPTOR_CONSTANT;
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -4121,10 +4121,9 @@ class CssStyleDeclaration extends Interceptor with
static String _camelCase(String hyphenated) {
var replacedMs = JS('String', r'#.replace(/^-ms-/, "ms-")', hyphenated);
-
- var fToUpper = const JS_CONST(
- r'function(_, letter) { return letter.toUpperCase(); }');
- return JS('String', r'#.replace(/-([\da-z])/ig, #)', replacedMs, fToUpper);
+ return JS('String',
+ r'#.replace(/-([\da-z])/ig, (_, letter) => letter.toUpperCase())',
+ replacedMs);
}
void _setPropertyHelper(String propertyName, String value, [String priority]) {
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698