[JS IR] fix name clashes for imported external declarations

This commit is contained in:
Anton Bannykh
2020-09-29 14:00:38 +03:00
committed by TeamCityServer
parent 6e40c814c8
commit 0182c09318
6 changed files with 130 additions and 3 deletions
@@ -0,0 +1,29 @@
define("a", [], function() {
function A() {}
A.prototype.foo = function () {
return "O";
};
return {
A: A,
bar: function() { return 1; },
prop: 10
};
});
define("b", [], function() {
function A() {}
A.prototype.foo = function () {
return "K";
};
return {
A: A,
bar: function() { return 2; },
prop: 20
};
});