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

Side by Side Diff: lib/runtime/dart/_internal.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, 3 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/_interceptors.js ('k') | lib/runtime/dart/_native_typed_data.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/_internal', null, /* Imports */[ 1 dart_library.library('dart/_internal', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
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 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1648 }) 1648 })
1649 }); 1649 });
1650 return FixedLengthListMixin; 1650 return FixedLengthListMixin;
1651 }); 1651 });
1652 let FixedLengthListMixin = FixedLengthListMixin$(); 1652 let FixedLengthListMixin = FixedLengthListMixin$();
1653 let UnmodifiableListMixin$ = dart.generic(function(E) { 1653 let UnmodifiableListMixin$ = dart.generic(function(E) {
1654 class UnmodifiableListMixin extends core.Object { 1654 class UnmodifiableListMixin extends core.Object {
1655 set(index, value) { 1655 set(index, value) {
1656 dart.as(value, E); 1656 dart.as(value, E);
1657 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable list ")); 1657 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable list "));
1658 return value;
1658 } 1659 }
1659 set length(newLength) { 1660 set length(newLength) {
1660 dart.throw(new core.UnsupportedError("Cannot change the length of an unm odifiable list")); 1661 dart.throw(new core.UnsupportedError("Cannot change the length of an unm odifiable list"));
1661 } 1662 }
1662 setAll(at, iterable) { 1663 setAll(at, iterable) {
1663 dart.as(iterable, core.Iterable$(E)); 1664 dart.as(iterable, core.Iterable$(E));
1664 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable list ")); 1665 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable list "));
1665 } 1666 }
1666 add(value) { 1667 add(value) {
1667 dart.as(value, E); 1668 dart.as(value, E);
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) { 1851 for (let i = 0; dart.notNull(i) < dart.notNull(length); i = dart.notNull (i) + 1) {
1851 f(i, this[_values][dartx.get](i)); 1852 f(i, this[_values][dartx.get](i));
1852 if (length != this[_values][dartx.length]) { 1853 if (length != this[_values][dartx.length]) {
1853 dart.throw(new core.ConcurrentModificationError(this[_values])); 1854 dart.throw(new core.ConcurrentModificationError(this[_values]));
1854 } 1855 }
1855 } 1856 }
1856 } 1857 }
1857 set(key, value) { 1858 set(key, value) {
1858 dart.as(value, E); 1859 dart.as(value, E);
1859 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable map" )); 1860 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable map" ));
1861 return value;
1860 } 1862 }
1861 putIfAbsent(key, ifAbsent) { 1863 putIfAbsent(key, ifAbsent) {
1862 dart.as(ifAbsent, dart.functionType(E, [])); 1864 dart.as(ifAbsent, dart.functionType(E, []));
1863 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable map" )); 1865 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable map" ));
1864 } 1866 }
1865 remove(key) { 1867 remove(key) {
1866 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable map" )); 1868 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable map" ));
1867 } 1869 }
1868 clear() { 1870 clear() {
1869 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable map" )); 1871 dart.throw(new core.UnsupportedError("Cannot modify an unmodifiable map" ));
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2446 exports.ReversedListIterable = ReversedListIterable; 2448 exports.ReversedListIterable = ReversedListIterable;
2447 exports.UnmodifiableListError = UnmodifiableListError; 2449 exports.UnmodifiableListError = UnmodifiableListError;
2448 exports.NonGrowableListError = NonGrowableListError; 2450 exports.NonGrowableListError = NonGrowableListError;
2449 exports.makeListFixedLength = makeListFixedLength; 2451 exports.makeListFixedLength = makeListFixedLength;
2450 exports.Lists = Lists; 2452 exports.Lists = Lists;
2451 exports.printToConsole = printToConsole; 2453 exports.printToConsole = printToConsole;
2452 exports.Sort = Sort; 2454 exports.Sort = Sort;
2453 exports.Symbol = Symbol; 2455 exports.Symbol = Symbol;
2454 exports.POWERS_OF_TEN = POWERS_OF_TEN; 2456 exports.POWERS_OF_TEN = POWERS_OF_TEN;
2455 }); 2457 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/_native_typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698