Skip to content

Added override for traceback#490

Merged
Perryvw merged 12 commits intosource-mapsfrom
feature/sourcemap-traceback
Mar 30, 2019
Merged

Added override for traceback#490
Perryvw merged 12 commits intosource-mapsfrom
feature/sourcemap-traceback

Conversation

@Perryvw
Copy link
Copy Markdown
Member

@Perryvw Perryvw commented Mar 23, 2019

Added override for debug.traceback to apply the source map to stack traces inside Lua.

@Perryvw Perryvw requested review from lolleko and tomblind March 23, 2019 19:47
}

this.sourceFile = path.basename(sourceFile);
this.sourceFile = path.basename(sourceFile, ".ts");
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.

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 Perryvw merged commit 77b0929 into source-maps Mar 30, 2019
@Perryvw Perryvw deleted the feature/sourcemap-traceback branch March 30, 2019 19:40
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
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

Successfully merging this pull request may close these issues.

3 participants