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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « pkg/dev_compiler/test/codegen/unresolved_names.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 define(['dart_sdk'], function(dart_sdk) {
2 'use strict';
3 const core = dart_sdk.core;
4 const dart = dart_sdk.dart;
5 const dartx = dart_sdk.dartx;
6 const unresolved_names = Object.create(null);
7 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynam ic, [])))();
8 unresolved_names.C = class C extends core.Object {};
9 unresolved_names.main = function() {
10 new (dart.throw("compile error: unresolved constructor: " + "dynamic" + "." + "<unnamed>"))();
11 new (dart.throw("compile error: unresolved constructor: " + "C" + "." + "bar "))();
12 core.print(dart.throw("compile error: unresolved identifier: " + "baz"));
13 core.print(dart.dload(unresolved_names.C, 'quux'));
14 };
15 dart.fn(unresolved_names.main, VoidTodynamic());
16 dart.trackLibraries("unresolved_names", {
17 "unresolved_names.dart": unresolved_names
18 }, null);
19 // Exports:
20 return {
21 unresolved_names: unresolved_names
22 };
23 });
OLDNEW
« 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