c1d45769c3
Change-Id: Iee929bc64c152be989e6e7ba38132f806c33c7e0 Reviewed-on: https://dart-review.googlesource.com/11960 Commit-Queue: Vijay Menon <vsm@google.com> Reviewed-by: Jennifer Messerly <jmesserly@google.com>
28 lines
1.0 KiB
JavaScript
28 lines
1.0 KiB
JavaScript
define(['dart_sdk'], function(dart_sdk) {
|
|
'use strict';
|
|
const core = dart_sdk.core;
|
|
const dart = dart_sdk.dart;
|
|
const dartx = dart_sdk.dartx;
|
|
const _root = Object.create(null);
|
|
const unresolved_names = Object.create(_root);
|
|
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnType(dart.dynamic, [])))();
|
|
unresolved_names.C = class C extends core.Object {};
|
|
(unresolved_names.C.new = function() {
|
|
}).prototype = unresolved_names.C.prototype;
|
|
dart.addTypeTests(unresolved_names.C);
|
|
unresolved_names.main = function() {
|
|
dart.throw(Error("compile error: unresolved constructor: dynamic.<unnamed>"));
|
|
dart.throw(Error("compile error: unresolved constructor: C.bar"));
|
|
core.print(dart.throw(Error("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
|
|
};
|
|
});
|