Closed steida closed 5 years ago
hey @steida before you digg too deep, it's likely a duplicate of: https://github.com/standard-things/esm/issues/803 https://github.com/standard-things/esm/issues/804
This is very much still broken, and 803 and 804 claim it as closed.
@djMax there still seems to be a "leftover" regression regarding computed property names
.
I would consider unpublishing 23 and 24.
Same experience with broken computed property names.
@jdalton repro:
export class Foo {
["bar"]() {} // not working
}
marking as "new" bug, since it was mentioned in the other [closed] thread.
I just run into the same problem, here is my minimal test case: https://github.com/gr2m/esm-bug
// index.js
require = require("esm")(module/*, options*/)
const { MyClass }= require("./module.js")
const mc = new MyClass()
mc[Symbol.iterator]()
// module.js
export class MyClass {
[Symbol.iterator]() {
console.log('test')
}
}
That fixed it for me, cheers 👍
Fixed here as well. Thank you!
Now sure why yet, but 3.2.22 works.
Investigating...