Skip to content

Conversation

@AvarianKnight
Copy link
Contributor

This uses a non-minified version of https://github.com/7rulnik/source-map-js to handle loading source maps.

This also changes behavior for the Node ScRT to go back to using the shared v8 unhandled promise rejection so we get proper source maps for these calls.

This adjust the behavior of FORMAT_STACK_TRACE so we don't eat errors if they happen on the same tick for JS/C# at the cost that we get less information than we normaly would, but this should only really happen with export calls, in that case we only lose information from Lua ScRT's since JS/C# both will supply their current stack trace as arguments.

This PR applies to the following area(s)

ScRT: JS

Successfully tested on

Game builds: ..

Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

This uses a non-minified version of https://github.com/7rulnik/source-map-js
to handle loading source maps.

This also changes behavior for the Node ScRT to go back to using the shared
v8 unhandled promise rejection so we get proper source maps for these calls.

This adjust the behavior of FORMAT_STACK_TRACE so we don't eat errors if they
happen on the same tick for JS/C# at the cost that we get less information
than we normaly would, but this should only really happen with export calls,
in that case we only lose information from Lua ScRT's since JS/C# both will
supply their current stack trace as arguments.
@github-actions github-actions bot added ScRT: JS Issues/PRs related to the JavaScript scripting runtime invalid Requires changes before it's considered valid and can be (re)triaged labels Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged ScRT: JS Issues/PRs related to the JavaScript scripting runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant