Skip to content

Commit

Permalink
[unity]添加 webgl GetJSStackTrace 实现 (#1943)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwalk authored Dec 12, 2024
1 parent 7cb6784 commit 7a853d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions unity/Assets/webgl/upm/Javascripts~/PuertsDLLMock/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ global.PuertsWebGL = {
LogicTick: function (isolate: IntPtr) { },
SetLogCallback: function (log: IntPtr, logWarning: IntPtr, logError: IntPtr) {

},
GetJSStackTrace: function (isolate: IntPtr) {
return new Error().stack;
}
}
)
Expand Down

0 comments on commit 7a853d2

Please sign in to comment.