Merged
Conversation
tomblind
reviewed
Mar 25, 2019
# Conflicts: # test/unit/compiler/configuration/mixed/index.spec.ts
tomblind
reviewed
Mar 28, 2019
ark120202
reviewed
Mar 28, 2019
src/LuaPrinter.ts
Outdated
| } | ||
|
|
||
| this.sourceFile = path.basename(sourceFile); | ||
| this.sourceFile = path.basename(sourceFile, ".ts"); |
Contributor
There was a problem hiding this comment.
Won't it fail if there are files with the same name in different directories?
It might be possible to use debug.getinfo(2).short_src inside __TS__SourceMapTraceBack to make it work without using some fixed path
Perryvw
pushed a commit
that referenced
this pull request
Apr 2, 2019
* Added initial support for sourcemaps * Made some adjustments to source maps (#466) * Made some adjustments to source maps * Fixed tests * Removed tsOriginal field from AST nodes * Fixed package issues * Inline source maps * Added sourcemap lualib function * Added override for traceback (#490) * Added override for traceback * Improved sourcemap override * Removed obsolete argument * put traceback override at start of the file after headers * changed 2 underscore identifiers * Added test for sourceMapTraceback * don't enforce prettier linting * use debug.getinfo for file names * Trying to diagnose test issue * No longer check filename in sourcemap test * Another stab at fixing tests * Added sourcemap test, simplified API * Added back dependency that got lost in the merge * Fix prettier complaining * Made appveyor lint * Fixed bug in setNodeOriginal and added test to detect it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added override for
debug.tracebackto apply the source map to stack traces inside Lua.