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

JavaScript Syntax Error for valid syntax: new.target #15746

Closed
dilijev opened this issue Nov 19, 2016 · 3 comments
Closed

JavaScript Syntax Error for valid syntax: new.target #15746

dilijev opened this issue Nov 19, 2016 · 3 comments
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@dilijev
Copy link

dilijev commented Nov 19, 2016

  • VSCode Version: Code - Insiders 1.8.0-insider (043310a, 2016-11-17T12:04:45.677Z)
  • OS Version: Windows_NT ia32 10.0.14965
  • Extensions (running with --disable-extensions):
Extension Author Version
cpptools ms-vscode 0.9.2
csharp ms-vscode 1.5.2
PowerShell ms-vscode 0.7.2
rewrap stkb 0.6.4

Steps to Reproduce:

  1. Load a javascript file with a script like the following:
function foo() {
    console.log(new.target)
};
new foo;
  1. Observe the error:

image

@mjbvz mjbvz added javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Nov 21, 2016
@mjbvz
Copy link
Collaborator

mjbvz commented Nov 21, 2016

Thanks. This is a known limitation of TypeScript (which we also use to power our JavaScript language support). I believe this is being tracked by: microsoft/TypeScript#2551

@dilijev
Copy link
Author

dilijev commented Nov 21, 2016

@mjbvz gotcha, thanks.

@dbaeumer dbaeumer removed their assignment Nov 22, 2016
@mjbvz
Copy link
Collaborator

mjbvz commented Nov 28, 2016

Closing this since it is being tracked upstream on the TypeScript side.

@mjbvz mjbvz closed this as completed Nov 28, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants