Skip to content

Commit 7b23cc7

Browse files
committed
test would pass if inlining was disabled
1 parent 795da4f commit 7b23cc7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/stacktrace/stacktrace-2.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
/*
2-
stacktrace-2.js:14
3-
stacktrace-2.js:8
2+
stacktrace-2.js:16
3+
stacktrace-2.js:9
44
*/
55
import UnityScript.Tests;
6+
import System.Runtime.CompilerServices;
67

78
// cuts off the root level of the stacktrace
89
var p = new Test();
910

1011
class Test
1112
{
13+
//@MethodImpl(MethodImplOptions.NoInlining) //uncommenting the line makes it work
1214
function Test ()
1315
{
1416
throw new System.Exception();

0 commit comments

Comments
 (0)