mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
add option WASM_USE_EH to ignore exception support because currently not supported
This commit is contained in:
parent
54d2deef4f
commit
e43a8277c1
@ -60,7 +60,7 @@ public class WasmRule extends TemporaryFolder {
|
|||||||
|
|
||||||
private final Class<?>[] classes;
|
private final Class<?>[] classes;
|
||||||
|
|
||||||
private JWebAssembly compiler;
|
private final JWebAssembly compiler;
|
||||||
|
|
||||||
private File wasmFile;
|
private File wasmFile;
|
||||||
|
|
||||||
@ -99,6 +99,7 @@ public class WasmRule extends TemporaryFolder {
|
|||||||
throw new IllegalArgumentException( "You need to set minimum one test class" );
|
throw new IllegalArgumentException( "You need to set minimum one test class" );
|
||||||
}
|
}
|
||||||
this.classes = classes;
|
this.classes = classes;
|
||||||
|
compiler = new JWebAssembly();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -115,6 +116,18 @@ public class WasmRule extends TemporaryFolder {
|
|||||||
testResults = new HashMap<>();
|
testResults = new HashMap<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set property to control the behavior of the compiler
|
||||||
|
*
|
||||||
|
* @param key
|
||||||
|
* the key
|
||||||
|
* @param value
|
||||||
|
* the new value
|
||||||
|
*/
|
||||||
|
public void setProperty( String key, String value ) {
|
||||||
|
compiler.setProperty( key, value );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
@ -199,7 +212,6 @@ public class WasmRule extends TemporaryFolder {
|
|||||||
* if the compiling is failing
|
* if the compiling is failing
|
||||||
*/
|
*/
|
||||||
public void compile() throws WasmException {
|
public void compile() throws WasmException {
|
||||||
compiler = new JWebAssembly();
|
|
||||||
for( Class<?> clazz : classes ) {
|
for( Class<?> clazz : classes ) {
|
||||||
URL url = clazz.getResource( '/' + clazz.getName().replace( '.', '/' ) + ".class" );
|
URL url = clazz.getResource( '/' + clazz.getName().replace( '.', '/' ) + ".class" );
|
||||||
compiler.addFile( url );
|
compiler.addFile( url );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user