mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Co-authored-by: Nicolò Ribaudo <[email protected]> Co-authored-by: Justin Ridgewell <[email protected]>
16 lines
169 B
JavaScript
16 lines
169 B
JavaScript
class Base {
|
|
constructor(obj) {
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
class Derived extends Base {
|
|
#foo() {
|
|
return 'bar';
|
|
}
|
|
|
|
static get(obj) {
|
|
return obj.#foo();
|
|
}
|
|
}
|