Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix assertion -- an import may come from a require() call#19667

Merged
3 commits merged into
mastermicrosoft/TypeScript:masterfrom
completionsimport_requiremicrosoft/TypeScript:completionsimport_requireCopy head branch name to clipboard
Nov 7, 2017
Merged

Fix assertion -- an import may come from a require() call#19667
3 commits merged into
mastermicrosoft/TypeScript:masterfrom
completionsimport_requiremicrosoft/TypeScript:completionsimport_requireCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Nov 1, 2017

Copy link
Copy Markdown

Fixes #19629

@ghost ghost requested a review from armanio123 November 1, 2017 20:31
////export const foo = 0;

// @Filename: /b.js
////const a = require("./a");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also add a test for import("./a");

@mhegazy

mhegazy commented Nov 1, 2017

Copy link
Copy Markdown
Contributor

Please port this to release-2.6

@ghost ghost merged commit 2fcf8b7 into master Nov 7, 2017
@ghost ghost deleted the completionsimport_require branch November 7, 2017 15:41
ghost pushed a commit that referenced this pull request Nov 7, 2017
* Fix assertion -- an import may come from a require() call

* Add test for `import("./a")`
aluanhaddad pushed a commit to aluanhaddad/TypeScript that referenced this pull request Nov 7, 2017
…19667)

* Fix assertion -- an import may come from a require() call

* Add test for `import("./a")`
ghost pushed a commit that referenced this pull request Nov 7, 2017
…19810)

* Fix assertion -- an import may come from a require() call

* Add test for `import("./a")`
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.