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

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

Issue 1316723003: implement null aware ops, fixes #249 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/js.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('dart/core', null, /* Imports */[ 1 dart_library.library('dart/core', null, /* Imports */[
2 "dart_runtime/dart" 2 "dart_runtime/dart"
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 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 return values == null ? null : dart.as(_js_helper.Primitives.getProperty (values, this[_getKey]()), T); 1172 return values == null ? null : dart.as(_js_helper.Primitives.getProperty (values, this[_getKey]()), T);
1173 } 1173 }
1174 set(object, value) { 1174 set(object, value) {
1175 dart.as(value, T); 1175 dart.as(value, T);
1176 let values = _js_helper.Primitives.getProperty(object, Expando$()._EXPAN DO_PROPERTY_NAME); 1176 let values = _js_helper.Primitives.getProperty(object, Expando$()._EXPAN DO_PROPERTY_NAME);
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 } 1183 }
1183 [_getKey]() { 1184 [_getKey]() {
1184 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);
1185 if (key == null) { 1186 if (key == null) {
1186 key = `expando$key$${(() => { 1187 key = `expando$key$${(() => {
1187 let x = Expando$()._keyCount; 1188 let x = Expando$()._keyCount;
1188 Expando$()._keyCount = dart.notNull(x) + 1; 1189 Expando$()._keyCount = dart.notNull(x) + 1;
1189 return x; 1190 return x;
1190 })()}`; 1191 })()}`;
1191 _js_helper.Primitives.setProperty(this, Expando$()._KEY_PROPERTY_NAME, key); 1192 _js_helper.Primitives.setProperty(this, Expando$()._KEY_PROPERTY_NAME, key);
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after
3365 exports.StackTrace = StackTrace; 3366 exports.StackTrace = StackTrace;
3366 exports.Stopwatch = Stopwatch; 3367 exports.Stopwatch = Stopwatch;
3367 exports.String = String; 3368 exports.String = String;
3368 exports.RuneIterator = RuneIterator; 3369 exports.RuneIterator = RuneIterator;
3369 exports.StringBuffer = StringBuffer; 3370 exports.StringBuffer = StringBuffer;
3370 exports.StringSink = StringSink; 3371 exports.StringSink = StringSink;
3371 exports.Symbol = Symbol; 3372 exports.Symbol = Symbol;
3372 exports.Type = Type; 3373 exports.Type = Type;
3373 exports.Uri = Uri; 3374 exports.Uri = Uri;
3374 }); 3375 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/js.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698