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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/misc.js
diff --git a/test/codegen/expect/misc.js b/test/codegen/expect/misc.js
index e97fbcf4ca1f78a80ee1c75899a13639df6e35c4..2d7df9d7fd9f0cce3904fadda023287adb436cef 100644
--- a/test/codegen/expect/misc.js
+++ b/test/codegen/expect/misc.js
@@ -44,6 +44,19 @@ dart_library.library('misc', null, /* Imports */[
}
dart.fn(_isWhitespace, core.bool, [core.String]);
let _escapeMap = dart.const(dart.map({'\n': '\\n', '\r': '\\r', '\f': '\\f', '\b': '\\b', '\t': '\\t', '\v': '\\v', '': '\\x7F'}));
+ let _foo = Symbol('_foo');
+ let Symbol$ = dart.generic(function(T) {
+ class Symbol extends core.Object {
+ Symbol(foo) {
+ this[_foo] = foo;
+ }
+ }
+ dart.setSignature(Symbol, {
+ constructors: () => ({Symbol: [exports.Symbol$(T), [T]]})
+ });
+ return Symbol;
+ });
+ exports.Symbol = exports.Symbol$();
function main() {
core.print(dart.toString(1));
core.print(dart.toString(1.0));
@@ -53,6 +66,7 @@ dart_library.library('misc', null, /* Imports */[
core.print(dart.equals(x, Generic));
core.print(new (Generic$(core.int))().type);
core.print(dart.equals(new Derived(), new Derived()));
+ core.print(new (exports.Symbol$(core.String))('hi')[_foo]);
}
dart.fn(main);
// Exports:
@@ -61,5 +75,6 @@ dart_library.library('misc', null, /* Imports */[
exports.Generic = Generic;
exports.Base = Base;
exports.Derived = Derived;
+ exports.Symbol$ = Symbol$;
exports.main = main;
});
« 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