[K/Wasm] Generate source-map for WAT-files
This commit is contained in:
@@ -147,8 +147,8 @@ class WasmBackendFacade(
|
||||
wat = newWat,
|
||||
jsUninstantiatedWrapper = jsUninstantiatedWrapper,
|
||||
jsWrapper = jsWrapper,
|
||||
sourceMap = null,
|
||||
wasm = newWasm
|
||||
wasm = newWasm,
|
||||
debugInformation = null
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ class WasmDebugRunner(testServices: TestServices) : AbstractWasmArtifactsCollect
|
||||
}
|
||||
|
||||
private val WasmCompilerResult.parsedSourceMaps: SourceMap
|
||||
get() = when (val parseResult = SourceMapParser.parse(sourceMap ?: error("Expect to have source maps for stepping test"))) {
|
||||
get() = when (val parseResult = SourceMapParser.parse(debugInformation?.sourceMapForBinary ?: error("Expect to have source maps for stepping test"))) {
|
||||
is SourceMapSuccess -> parseResult.value
|
||||
is SourceMapError -> error(parseResult.message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user