mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
Co-authored-by: Nicolò Ribaudo <[email protected]> Co-authored-by: Justin Ridgewell <[email protected]>
14 lines
170 B
JavaScript
14 lines
170 B
JavaScript
class Base {
|
|
constructor(obj) {
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
let counter = 0;
|
|
class Derived extends Base {
|
|
#foo = ++counter;
|
|
static get(obj) {
|
|
return obj.#foo;
|
|
}
|
|
}
|