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

Side by Side Diff: lib/runtime/dart/core.js

Issue 1426243002: fix #379, escape of $ in template strings (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 dart_library.library('dart/core', null, /* Imports */[ 1 dart_library.library('dart/core', null, /* Imports */[
2 "dart/_runtime" 2 "dart/_runtime"
3 ], /* Lazy imports */[ 3 ], /* Lazy imports */[
4 'dart/_js_helper', 4 'dart/_js_helper',
5 'dart/_internal', 5 'dart/_internal',
6 'dart/collection', 6 'dart/collection',
7 'dart/_interceptors', 7 'dart/_interceptors',
8 'dart/convert' 8 'dart/convert'
9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con vert) { 9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con vert) {
10 'use strict'; 10 'use strict';
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 if (values == null) { 1177 if (values == null) {
1178 values = new Object(); 1178 values = new Object();
1179 _js_helper.Primitives.setProperty(object, Expando$()._EXPANDO_PROPERTY _NAME, values); 1179 _js_helper.Primitives.setProperty(object, Expando$()._EXPANDO_PROPERTY _NAME, values);
1180 } 1180 }
1181 _js_helper.Primitives.setProperty(values, this[_getKey](), value); 1181 _js_helper.Primitives.setProperty(values, this[_getKey](), value);
1182 return value; 1182 return value;
1183 } 1183 }
1184 [_getKey]() { 1184 [_getKey]() {
1185 let key = dart.as(_js_helper.Primitives.getProperty(this, Expando$()._KE Y_PROPERTY_NAME), String); 1185 let key = dart.as(_js_helper.Primitives.getProperty(this, Expando$()._KE Y_PROPERTY_NAME), String);
1186 if (key == null) { 1186 if (key == null) {
1187 key = `expando$key$${(() => { 1187 key = `expando\$key\$${(() => {
1188 let x = Expando$()._keyCount; 1188 let x = Expando$()._keyCount;
1189 Expando$()._keyCount = dart.notNull(x) + 1; 1189 Expando$()._keyCount = dart.notNull(x) + 1;
1190 return x; 1190 return x;
1191 })()}`; 1191 })()}`;
1192 _js_helper.Primitives.setProperty(this, Expando$()._KEY_PROPERTY_NAME, key); 1192 _js_helper.Primitives.setProperty(this, Expando$()._KEY_PROPERTY_NAME, key);
1193 } 1193 }
1194 return key; 1194 return key;
1195 } 1195 }
1196 } 1196 }
1197 dart.setSignature(Expando, { 1197 dart.setSignature(Expando, {
(...skipping 2168 matching lines...) Expand 10 before | Expand all | Expand 10 after
3366 exports.StackTrace = StackTrace; 3366 exports.StackTrace = StackTrace;
3367 exports.Stopwatch = Stopwatch; 3367 exports.Stopwatch = Stopwatch;
3368 exports.String = String; 3368 exports.String = String;
3369 exports.RuneIterator = RuneIterator; 3369 exports.RuneIterator = RuneIterator;
3370 exports.StringBuffer = StringBuffer; 3370 exports.StringBuffer = StringBuffer;
3371 exports.StringSink = StringSink; 3371 exports.StringSink = StringSink;
3372 exports.Symbol = Symbol; 3372 exports.Symbol = Symbol;
3373 exports.Type = Type; 3373 exports.Type = Type;
3374 exports.Uri = Uri; 3374 exports.Uri = Uri;
3375 }); 3375 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_internal.js ('k') | lib/src/js/builder.dart » ('j') | lib/src/js/builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698