Skip to content
This repository was archived by the owner on Oct 2, 2021. It is now read-only.

Fix site.js appearing in the call stack instead of site.ts#246

Merged
roblourens merged 1 commit intomicrosoft:masterfrom
digeff:fix_incorrect_name_in_callstack
Oct 5, 2017
Merged

Fix site.js appearing in the call stack instead of site.ts#246
roblourens merged 1 commit intomicrosoft:masterfrom
digeff:fix_incorrect_name_in_callstack

Conversation

@digeff
Copy link
Contributor

@digeff digeff commented Oct 5, 2017

The code wasn't awaiting, so part of the code to create the response run before resolving the source maps, and the other part after it so we ended up with part saying site.js and part saying site.ts

@roblourens
Copy link
Member

Good catch!

@roblourens roblourens merged commit e8fd78d into microsoft:master Oct 5, 2017
@digeff
Copy link
Contributor Author

digeff commented Oct 5, 2017

@roblourens Is there any option for tslint that can catch these kind of things?

@digeff digeff deleted the fix_incorrect_name_in_callstack branch October 5, 2017 18:29
@roblourens
Copy link
Member

Not every async function should be awaited, it's tough to know just from looking at the code whether it's right or wrong.

@digeff
Copy link
Contributor Author

digeff commented Oct 5, 2017

In C# you call .Forget() to signal that you are "not awaiting it" on purpose...

@roblourens roblourens added this to the October 2017 milestone Nov 4, 2017
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.

2 participants