What should `this` be in class `B`? The value of `object` or an instance of
`B`? It's an edge case, but could simplify my code a little if it's the
former.

```js
const object = {}

class A {
  constructor() {
    return object
  }
}

class B extends A {
  constructor() {
    super()
    console.log(this === object)
  }
}
```
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to