Index: tools/dom/scripts/css_code_generator.py |
diff --git a/tools/dom/scripts/css_code_generator.py b/tools/dom/scripts/css_code_generator.py |
index 819a9239a4bf600e545aca8564c51441266ec89e..7d7fa207ec6615971987447c9e3d8a9f7daa8e1a 100644 |
--- a/tools/dom/scripts/css_code_generator.py |
+++ b/tools/dom/scripts/css_code_generator.py |
@@ -195,7 +195,7 @@ $endif |
$if DART2JS |
var replacedMs = JS('String', r'#.replace(/^-ms-/, "ms-")', hyphenated); |
- var fToUpper = const JS_CONST( |
+ var fToUpper = JS('', |
r'function(_, letter) { return letter.toUpperCase(); }'); |
return JS('String', r'#.replace(/-([\da-z])/ig, #)', replacedMs, fToUpper); |
$else |