KT-2752: refactor NameSuggestion, change rules for determining name stability and applying mangling
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
function createA() {
|
||||
function ADerived() {
|
||||
}
|
||||
ADerived.prototype = Object.create(JS_TESTS.foo.A.prototype);
|
||||
ADerived.prototype.foo_za3lpa$ = function(n) {
|
||||
return 24;
|
||||
};
|
||||
return new ADerived();
|
||||
}
|
||||
|
||||
function createB() {
|
||||
function BDerived() {
|
||||
}
|
||||
BDerived.prototype = Object.create(JS_TESTS.foo.B.prototype);
|
||||
BDerived.prototype.bar_za3lpa$ = function(n) {
|
||||
return this.foo_za3lpa$(n);
|
||||
};
|
||||
return new BDerived();
|
||||
}
|
||||
Reference in New Issue
Block a user