[Wasm] Replace heavyweight stackTraceToString with "pure" JS stack

This commit is contained in:
Zalim Bashorov
2023-03-31 01:14:15 +02:00
parent 14af47bbd9
commit 67357fa5d4
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: WASM // TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 114_138 // WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 72_224
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_517 // WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_517
// FILE: test.kt // FILE: test.kt
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: WASM // TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 114_456 // WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 72_549
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_458 // WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_458
fun box(): String { fun box(): String {
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: WASM // TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 126_639 // WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 84_364
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_956 // WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_956
// FILE: test.kt // FILE: test.kt
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: WASM // TARGET_BACKEND: WASM
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 114_189 // WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 72_275
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_389 // WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 6_389
fun box() = "OK" fun box() = "OK"
@@ -17,7 +17,7 @@ private fun throwJsError(message: String?, wasmTypeName: String?, stack: String)
} }
internal fun throwAsJsException(t: Throwable): Nothing { internal fun throwAsJsException(t: Throwable): Nothing {
throwJsError(t.message, getSimpleName(t.typeInfo), t.stackTraceToString()) throwJsError(t.message, getSimpleName(t.typeInfo), t.stack)
} }
internal var isNotFirstWasmExportCall: Boolean = false internal var isNotFirstWasmExportCall: Boolean = false