Skip to content

Conversation

@SarahIsWeird
Copy link
Contributor

This fixes #236. I'm not sure if there are other weird edge cases this misses, though.

function(c, a) {
  class MyClass extends Object {
    constructor() {
      let _0o2iruz6j10_THIS_ = super()
      _0o2iruz6j10_THIS_.number = 2
    }
    foo() {
      let _0o2iruz6j10_THIS_ = super.valueOf()
      return [1, 2, 3].filter(n => n == _0o2iruz6j10_THIS_.number)
    }
  }
  return new MyClass()
}

@samualtnorman samualtnorman merged commit 6eb310a into samualtnorman:main Jan 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arrow functions in classes do not bind this

2 participants