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

Unified Diff: pkg/dev_compiler/test/codegen_expected/identity_test.js

Issue 3009733002: fix how DDC finds its undefined constant (Closed)
Patch Set: rebase and rebuild JS files Created 3 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 side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/test/codegen_expected/identity_test.js
diff --git a/pkg/dev_compiler/test/codegen_expected/identity_test.js b/pkg/dev_compiler/test/codegen_expected/identity_test.js
index 32beed1f464e29304e08dc6928042f0a78db2caf..254923fc6e0280a98aa5a5aeb1bbd04af047f7c9 100644
--- a/pkg/dev_compiler/test/codegen_expected/identity_test.js
+++ b/pkg/dev_compiler/test/codegen_expected/identity_test.js
@@ -5,6 +5,7 @@ define(['dart_sdk', 'expect'], function(dart_sdk, expect) {
const dartx = dart_sdk.dartx;
const minitest = expect.minitest;
const identity_test = Object.create(null);
+ const $_get = dartx._get;
let TToT = () => (TToT = dart.constFn(dart.gFnType(T => [T, [T]])))();
let VoidToT = () => (VoidToT = dart.constFn(dart.gFnType(T => [T, []])))();
let VoidToNull = () => (VoidToNull = dart.constFn(dart.fnType(core.Null, [])))();
@@ -30,9 +31,11 @@ define(['dart_sdk', 'expect'], function(dart_sdk, expect) {
identity_test.BluesBrother = class BluesBrother extends core.Object {};
(identity_test.BluesBrother.new = function() {
}).prototype = identity_test.BluesBrother.prototype;
+ dart.addTypeTests(identity_test.BluesBrother);
identity_test._Jake = class _Jake extends identity_test.BluesBrother {};
(identity_test._Jake.new = function() {
}).prototype = identity_test._Jake.prototype;
+ dart.addTypeTests(identity_test._Jake);
identity_test._Elwood = class _Elwood extends identity_test.BluesBrother {
['=='](other) {
return identity_test._Elwood.is(other);
@@ -40,12 +43,14 @@ define(['dart_sdk', 'expect'], function(dart_sdk, expect) {
};
(identity_test._Elwood.new = function() {
}).prototype = identity_test._Elwood.prototype;
+ dart.addTypeTests(identity_test._Elwood);
dart.setSignature(identity_test._Elwood, {
methods: () => ({'==': dart.fnType(core.bool, [core.Object])})
});
identity_test._Norman = class _Norman extends identity_test.BluesBrother {};
(identity_test._Norman.new = function() {
}).prototype = identity_test._Norman.prototype;
+ dart.addTypeTests(identity_test._Norman);
identity_test.hideNull = function(T) {
return x => {
return x;
@@ -54,7 +59,7 @@ define(['dart_sdk', 'expect'], function(dart_sdk, expect) {
dart.fn(identity_test.hideNull, TToT());
identity_test.getUndefined = function(T) {
return () => {
- return T._check(core.List.new(1)[dartx._get](0));
+ return T._check(core.List.new(1)[$_get](0));
};
};
dart.fn(identity_test.getUndefined, VoidToT());
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/es6_modules.js ('k') | pkg/dev_compiler/test/codegen_expected/node_modules.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698