Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not handling "this" correctly #80

Closed
joydeep-b opened this issue Oct 22, 2018 · 1 comment
Closed

Not handling "this" correctly #80

joydeep-b opened this issue Oct 22, 2018 · 1 comment

Comments

@joydeep-b
Copy link
Collaborator

This should run with no errors:

function Duck() {
  this.x = 1;
}

class DuckClass {
  constructor() {
    this.x = 1;
  }
}

let duck1 = new Duck();
let duck2 = new DuckClass();

However, it produces:

object does not have member 'x' at Line 4: in Duck
... : in handleNew
... 
@joydeep-b joydeep-b added the bug label Oct 22, 2018
@joydeep-b
Copy link
Collaborator Author

Duplicate of #81 , duplicated during the great github outage of 2018.

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

No branches or pull requests

1 participant