[JS IR] fix name clashes for imported external declarations
This commit is contained in:
committed by
TeamCityServer
parent
6e40c814c8
commit
0182c09318
@@ -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
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user