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

Side by Side Diff: test/codegen/expect/misc.js

Issue 1341963003: qualify core types: Object, Error, Symbol (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
OLDNEW
1 dart_library.library('misc', null, /* Imports */[ 1 dart_library.library('misc', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 class _Uninitialized extends core.Object { 8 class _Uninitialized extends core.Object {
9 _Uninitialized() { 9 _Uninitialized() {
10 } 10 }
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 ['=='](obj) { 38 ['=='](obj) {
39 return dart.is(obj, Derived) && dart.equals(dart.dload(obj, 'z'), this.z) && super['=='](obj); 39 return dart.is(obj, Derived) && dart.equals(dart.dload(obj, 'z'), this.z) && super['=='](obj);
40 } 40 }
41 } 41 }
42 function _isWhitespace(ch) { 42 function _isWhitespace(ch) {
43 return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t'; 43 return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t';
44 } 44 }
45 dart.fn(_isWhitespace, core.bool, [core.String]); 45 dart.fn(_isWhitespace, core.bool, [core.String]);
46 let _escapeMap = dart.const(dart.map({'\n': '\\n', '\r': '\\r', '\f': '\\f', ' \b': '\\b', '\t': '\\t', '\v': '\\v', '': '\\x7F'})); 46 let _escapeMap = dart.const(dart.map({'\n': '\\n', '\r': '\\r', '\f': '\\f', ' \b': '\\b', '\t': '\\t', '\v': '\\v', '': '\\x7F'}));
47 let _foo = Symbol('_foo');
48 let Symbol$ = dart.generic(function(T) {
49 class Symbol extends core.Object {
50 Symbol(foo) {
51 this[_foo] = foo;
52 }
53 }
54 dart.setSignature(Symbol, {
55 constructors: () => ({Symbol: [exports.Symbol$(T), [T]]})
56 });
57 return Symbol;
58 });
59 exports.Symbol = exports.Symbol$();
47 function main() { 60 function main() {
48 core.print(dart.toString(1)); 61 core.print(dart.toString(1));
49 core.print(dart.toString(1.0)); 62 core.print(dart.toString(1.0));
50 core.print(dart.toString(1.1)); 63 core.print(dart.toString(1.1));
51 let x = 42; 64 let x = 42;
52 core.print(dart.equals(x, dart.dynamic)); 65 core.print(dart.equals(x, dart.dynamic));
53 core.print(dart.equals(x, Generic)); 66 core.print(dart.equals(x, Generic));
54 core.print(new (Generic$(core.int))().type); 67 core.print(new (Generic$(core.int))().type);
55 core.print(dart.equals(new Derived(), new Derived())); 68 core.print(dart.equals(new Derived(), new Derived()));
69 core.print(new (exports.Symbol$(core.String))('hi')[_foo]);
56 } 70 }
57 dart.fn(main); 71 dart.fn(main);
58 // Exports: 72 // Exports:
59 exports.UNINITIALIZED = UNINITIALIZED; 73 exports.UNINITIALIZED = UNINITIALIZED;
60 exports.Generic$ = Generic$; 74 exports.Generic$ = Generic$;
61 exports.Generic = Generic; 75 exports.Generic = Generic;
62 exports.Base = Base; 76 exports.Base = Base;
63 exports.Derived = Derived; 77 exports.Derived = Derived;
78 exports.Symbol$ = Symbol$;
64 exports.main = main; 79 exports.main = main;
65 }); 80 });
OLDNEW
« lib/src/js/nodes.dart ('K') | « lib/src/js/nodes.dart ('k') | test/codegen/misc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698