mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
12 lines
238 B
JavaScript
12 lines
238 B
JavaScript
class Cl {
|
|
test() {
|
|
return babelHelpers.classStaticPrivateMethodGet(Cl, Cl, _privateStaticMethod).call(Cl);
|
|
}
|
|
}
|
|
async function _privateStaticMethod() {
|
|
return 2;
|
|
}
|
|
return new Cl().test().then(val => {
|
|
expect(val).toBe(2);
|
|
});
|