KT-12877: support plain reference to declaration in UMD wrapper, support plain reference to package

This commit is contained in:
Alexey Andreev
2016-07-05 11:45:33 +03:00
committed by Alexey Andreev
parent 495c876b3b
commit d63a727474
12 changed files with 285 additions and 42 deletions
@@ -0,0 +1,29 @@
var lib = function() {
function A(x) {
this.x = x;
}
A.prototype.foo = function (y) {
return this.x + y;
};
B = {
x: 123,
foo: function(y) {
return this.x + y;
}
};
function foo(y) {
return 323 + y;
}
var bar = 423;
return {
A: A,
B: B,
foo: foo,
bar: bar,
mbar: -1
};
}();