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

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

Issue 2920223009: fix "unresolved names" code generation (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/dev_compiler/test/codegen/unresolved_names.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/test/codegen_expected/unresolved_names.js
diff --git a/pkg/dev_compiler/test/codegen_expected/unresolved_names.js b/pkg/dev_compiler/test/codegen_expected/unresolved_names.js
new file mode 100644
index 0000000000000000000000000000000000000000..292d42a618563118a74b72c71fe5ed9c99d1501d
--- /dev/null
+++ b/pkg/dev_compiler/test/codegen_expected/unresolved_names.js
@@ -0,0 +1,23 @@
+define(['dart_sdk'], function(dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const unresolved_names = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic, [])))();
+ unresolved_names.C = class C extends core.Object {};
+ unresolved_names.main = function() {
+ new (dart.throw("compile error: unresolved constructor: " + "dynamic" + "." + "<unnamed>"))();
+ new (dart.throw("compile error: unresolved constructor: " + "C" + "." + "bar"))();
+ core.print(dart.throw("compile error: unresolved identifier: " + "baz"));
+ core.print(dart.dload(unresolved_names.C, 'quux'));
+ };
+ dart.fn(unresolved_names.main, VoidTodynamic());
+ dart.trackLibraries("unresolved_names", {
+ "unresolved_names.dart": unresolved_names
+ }, null);
+ // Exports:
+ return {
+ unresolved_names: unresolved_names
+ };
+});
« no previous file with comments | « pkg/dev_compiler/test/codegen/unresolved_names.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698