Skip to content

Error transforming numeric literals in shorthand method definitions

const obj = {
  0() {},
  0b101() {},
  80() {},
  .12e3() {},
  0o753() {},
  12e34() {},
  0xFFFF() {},
};

Numeric literals + shorthand syntax = Error transforming [...] base.replace is not a function.