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

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

Issue 1173023004: fixes #217, Object members on extension types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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/convert.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('dart/_internal', null, /* Imports */[ 1 dart.library('dart/_internal', null, /* Imports */[
2 'dart/core', 2 'dart/core',
3 'dart/collection' 3 'dart/collection'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 'dart/math', 5 'dart/math',
6 'dart/_interceptors', 6 'dart/_interceptors',
7 'dart/_js_primitives' 7 'dart/_js_primitives'
8 ], function(exports, core, collection, math, _interceptors, _js_primitives) { 8 ], function(exports, core, collection, math, _interceptors, _js_primitives) {
9 'use strict'; 9 'use strict';
10 class EfficientLength extends core.Object {} 10 class EfficientLength extends core.Object {}
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after
2312 this[_name] = name; 2312 this[_name] = name;
2313 } 2313 }
2314 validated(name) { 2314 validated(name) {
2315 this[_name] = Symbol.validatePublicSymbol(name); 2315 this[_name] = Symbol.validatePublicSymbol(name);
2316 } 2316 }
2317 ['=='](other) { 2317 ['=='](other) {
2318 return dart.is(other, Symbol) && this[_name] == other[_name]; 2318 return dart.is(other, Symbol) && this[_name] == other[_name];
2319 } 2319 }
2320 get hashCode() { 2320 get hashCode() {
2321 let arbitraryPrime = 664597; 2321 let arbitraryPrime = 664597;
2322 return 536870911 & dart.notNull(arbitraryPrime) * dart.notNull(dart[dartx. hashCode](this[_name])); 2322 return 536870911 & dart.notNull(arbitraryPrime) * dart.notNull(dart.hashCo de(this[_name]));
2323 } 2323 }
2324 toString() { 2324 toString() {
2325 return `Symbol("${this[_name]}")`; 2325 return `Symbol("${this[_name]}")`;
2326 } 2326 }
2327 static getName(symbol) { 2327 static getName(symbol) {
2328 return symbol[_name]; 2328 return symbol[_name];
2329 } 2329 }
2330 static validatePublicSymbol(name) { 2330 static validatePublicSymbol(name) {
2331 if (dart.notNull(name[dartx.isEmpty]) || dart.notNull(Symbol.publicSymbolP attern.hasMatch(name))) 2331 if (dart.notNull(name[dartx.isEmpty]) || dart.notNull(Symbol.publicSymbolP attern.hasMatch(name)))
2332 return name; 2332 return name;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2436 exports.ReversedListIterable = ReversedListIterable; 2436 exports.ReversedListIterable = ReversedListIterable;
2437 exports.UnmodifiableListError = UnmodifiableListError; 2437 exports.UnmodifiableListError = UnmodifiableListError;
2438 exports.NonGrowableListError = NonGrowableListError; 2438 exports.NonGrowableListError = NonGrowableListError;
2439 exports.makeListFixedLength = makeListFixedLength; 2439 exports.makeListFixedLength = makeListFixedLength;
2440 exports.Lists = Lists; 2440 exports.Lists = Lists;
2441 exports.printToConsole = printToConsole; 2441 exports.printToConsole = printToConsole;
2442 exports.Sort = Sort; 2442 exports.Sort = Sort;
2443 exports.Symbol = Symbol; 2443 exports.Symbol = Symbol;
2444 exports.POWERS_OF_TEN = POWERS_OF_TEN; 2444 exports.POWERS_OF_TEN = POWERS_OF_TEN;
2445 }); 2445 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_interceptors.js ('k') | lib/runtime/dart/convert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698