about summary refs log tree commit diff
path: root/pkg/lang/vm/text/decompiler_test.go
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-08-22 23:55:57 +0000
committerMel <einebeere@gmail.com>2022-08-22 23:55:57 +0000
commit0b227d990f56b3ea059d13584ff9102ee5039a0b (patch)
tree738f99368cbfd47b02290f53f2876faaae4dbd75 /pkg/lang/vm/text/decompiler_test.go
parente22df631c4428f8dea4d5784a8a7840d2f84c6be (diff)
downloadjinx-0b227d990f56b3ea059d13584ff9102ee5039a0b.tar.zst
jinx-0b227d990f56b3ea059d13584ff9102ee5039a0b.zip
Add flag to generate PCs markers when decompiling
Diffstat (limited to 'pkg/lang/vm/text/decompiler_test.go')
-rw-r--r--pkg/lang/vm/text/decompiler_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/lang/vm/text/decompiler_test.go b/pkg/lang/vm/text/decompiler_test.go
index 01e49b0..5b9a0d7 100644
--- a/pkg/lang/vm/text/decompiler_test.go
+++ b/pkg/lang/vm/text/decompiler_test.go
@@ -69,7 +69,7 @@ func test(t *testing.T, code string, expected string) {
 	resCompiled, err := comp.Compile()
 	require.NoError(t, err)
 
-	decomp := text.NewDecompiler(resCompiled)
+	decomp := text.NewDecompiler(resCompiled, false)
 	resDecompiled := decomp.Decompile()
 	require.Equal(t, trimmedExpected, resDecompiled)
 }