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

Side by Side Diff: lib/runtime/dart/_internal.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
« no previous file with comments | « no previous file | lib/runtime/dart/core.js » ('j') | lib/src/js/builder.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('dart/_internal', null, /* Imports */[ 1 dart_library.library('dart/_internal', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core', 3 'dart/core',
4 'dart/collection' 4 'dart/collection'
5 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
6 'dart/math', 6 'dart/math',
7 'dart/_interceptors', 7 'dart/_interceptors',
8 'dart/_js_primitives' 8 'dart/_js_primitives'
9 ], function(exports, dart, core, collection, math, _interceptors, _js_primitives ) { 9 ], function(exports, dart, core, collection, math, _interceptors, _js_primitives ) {
10 'use strict'; 10 'use strict';
(...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2368 }), 2368 }),
2369 names: ['getName', 'validatePublicSymbol', 'isValidSymbol'] 2369 names: ['getName', 'validatePublicSymbol', 'isValidSymbol']
2370 }); 2370 });
2371 Symbol.reservedWordRE = '(?:assert|break|c(?:a(?:se|tch)|lass|on(?:st|tinue))| d(?:efault|o)|' + 'e(?:lse|num|xtends)|f(?:alse|inal(?:ly)?|or)|i[fns]|n(?:ew|ul l)|' + 'ret(?:hrow|urn)|s(?:uper|witch)|t(?:h(?:is|row)|r(?:ue|y))|' + 'v(?:ar|o id)|w(?:hile|ith))'; 2371 Symbol.reservedWordRE = '(?:assert|break|c(?:a(?:se|tch)|lass|on(?:st|tinue))| d(?:efault|o)|' + 'e(?:lse|num|xtends)|f(?:alse|inal(?:ly)?|or)|i[fns]|n(?:ew|ul l)|' + 'ret(?:hrow|urn)|s(?:uper|witch)|t(?:h(?:is|row)|r(?:ue|y))|' + 'v(?:ar|o id)|w(?:hile|ith))';
2372 Symbol.publicIdentifierRE = '(?!' + `${Symbol.reservedWordRE}` + '\\b(?!\\$))[ a-zA-Z$][\\w$]*'; 2372 Symbol.publicIdentifierRE = '(?!' + `${Symbol.reservedWordRE}` + '\\b(?!\\$))[ a-zA-Z$][\\w$]*';
2373 Symbol.identifierRE = '(?!' + `${Symbol.reservedWordRE}` + '\\b(?!\\$))[a-zA-Z $_][\\w$]*'; 2373 Symbol.identifierRE = '(?!' + `${Symbol.reservedWordRE}` + '\\b(?!\\$))[a-zA-Z $_][\\w$]*';
2374 Symbol.operatorRE = '(?:[\\-+*/%&|^]|\\[\\]=?|==|~/?|<[<=]?|>[>=]?|unary-)'; 2374 Symbol.operatorRE = '(?:[\\-+*/%&|^]|\\[\\]=?|==|~/?|<[<=]?|>[>=]?|unary-)';
2375 let POWERS_OF_TEN = dart.const([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1 000000.0, 10000000.0, 100000000.0, 1000000000.0, 10000000000.0, 100000000000.0, 1000000000000.0, 10000000000000.0, 100000000000000.0, 1000000000000000.0, 100000 00000000000.0, 100000000000000000.0, 1000000000000000000.0, 10000000000000000000 .0, 100000000000000000000.0, 1e+21, 1e+22]); 2375 let POWERS_OF_TEN = dart.const([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1 000000.0, 10000000.0, 100000000.0, 1000000000.0, 10000000000.0, 100000000000.0, 1000000000000.0, 10000000000000.0, 100000000000000.0, 1000000000000000.0, 100000 00000000000.0, 100000000000000000.0, 1000000000000000000.0, 10000000000000000000 .0, 100000000000000000000.0, 1e+21, 1e+22]);
2376 dart.defineLazyProperties(Symbol, { 2376 dart.defineLazyProperties(Symbol, {
2377 get publicSymbolPattern() { 2377 get publicSymbolPattern() {
2378 return core.RegExp.new(`^(?:${Symbol.operatorRE}$|${Symbol.publicIdentifie rRE}(?:=?$|[.](?!$)))+?$`); 2378 return core.RegExp.new(`^(?:${Symbol.operatorRE}\$|${Symbol.publicIdentifi erRE}(?:=?\$|[.](?!\$)))+?\$`);
2379 }, 2379 },
2380 get symbolPattern() { 2380 get symbolPattern() {
2381 return core.RegExp.new(`^(?:${Symbol.operatorRE}$|${Symbol.identifierRE}(? :=?$|[.](?!$)))+?$`); 2381 return core.RegExp.new(`^(?:${Symbol.operatorRE}\$|${Symbol.identifierRE}( ?:=?\$|[.](?!\$)))+?\$`);
2382 } 2382 }
2383 }); 2383 });
2384 // Exports: 2384 // Exports:
2385 exports.EfficientLength = EfficientLength; 2385 exports.EfficientLength = EfficientLength;
2386 exports.ListIterable$ = ListIterable$; 2386 exports.ListIterable$ = ListIterable$;
2387 exports.ListIterable = ListIterable; 2387 exports.ListIterable = ListIterable;
2388 exports.SubListIterable$ = SubListIterable$; 2388 exports.SubListIterable$ = SubListIterable$;
2389 exports.SubListIterable = SubListIterable; 2389 exports.SubListIterable = SubListIterable;
2390 exports.ListIterator$ = ListIterator$; 2390 exports.ListIterator$ = ListIterator$;
2391 exports.ListIterator = ListIterator; 2391 exports.ListIterator = ListIterator;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 exports.ReversedListIterable = ReversedListIterable; 2448 exports.ReversedListIterable = ReversedListIterable;
2449 exports.UnmodifiableListError = UnmodifiableListError; 2449 exports.UnmodifiableListError = UnmodifiableListError;
2450 exports.NonGrowableListError = NonGrowableListError; 2450 exports.NonGrowableListError = NonGrowableListError;
2451 exports.makeListFixedLength = makeListFixedLength; 2451 exports.makeListFixedLength = makeListFixedLength;
2452 exports.Lists = Lists; 2452 exports.Lists = Lists;
2453 exports.printToConsole = printToConsole; 2453 exports.printToConsole = printToConsole;
2454 exports.Sort = Sort; 2454 exports.Sort = Sort;
2455 exports.Symbol = Symbol; 2455 exports.Symbol = Symbol;
2456 exports.POWERS_OF_TEN = POWERS_OF_TEN; 2456 exports.POWERS_OF_TEN = POWERS_OF_TEN;
2457 }); 2457 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/core.js » ('j') | lib/src/js/builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698