Is there a way to override square-bracket accessor on a class, i.e.:
class Foo {
  constructor() {
    this.bar = {}
  }
  [prop]() {
    return this.bar[prop]
  }
}
Is there a way to override square-bracket accessor on a class, i.e.:
class Foo {
  constructor() {
    this.bar = {}
  }
  [prop]() {
    return this.bar[prop]
  }
}
