mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
fix debug message on error
This commit is contained in:
parent
762ecba363
commit
82e5f367b8
@ -335,9 +335,9 @@ public class ModuleGenerator {
|
|||||||
*/
|
*/
|
||||||
public void finish() throws IOException {
|
public void finish() throws IOException {
|
||||||
for( Iterator<FunctionName> it = functions.getWriteLater(); it.hasNext(); ) {
|
for( Iterator<FunctionName> it = functions.getWriteLater(); it.hasNext(); ) {
|
||||||
sourceFile = null; // clear previous value for the case an IO exception occur
|
|
||||||
className = null;
|
|
||||||
FunctionName next = it.next();
|
FunctionName next = it.next();
|
||||||
|
sourceFile = null; // clear previous value for the case an IO exception occur
|
||||||
|
className = next.className;
|
||||||
if( next instanceof SyntheticFunctionName ) {
|
if( next instanceof SyntheticFunctionName ) {
|
||||||
writeMethodImpl( next, ((SyntheticFunctionName)next).getCodeBuilder( watParser ) );
|
writeMethodImpl( next, ((SyntheticFunctionName)next).getCodeBuilder( watParser ) );
|
||||||
} else {
|
} else {
|
||||||
@ -363,8 +363,8 @@ public class ModuleGenerator {
|
|||||||
if( functions.needToWrite( next ) ) {
|
if( functions.needToWrite( next ) ) {
|
||||||
writeMethod( next, method );
|
writeMethod( next, method );
|
||||||
}
|
}
|
||||||
} catch (IOException ioex){
|
} catch (Throwable ex){
|
||||||
throw WasmException.create( ioex, sourceFile, className, -1 );
|
throw WasmException.create( ex, sourceFile, className, -1 );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if( functions.needToWrite( next ) ) {
|
if( functions.needToWrite( next ) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user