mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +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 JWebAssembly compiler;
|
||||
private final JWebAssembly compiler;
|
||||
|
||||
private File wasmFile;
|
||||
|
||||
@ -99,6 +99,7 @@ public class WasmRule extends TemporaryFolder {
|
||||
throw new IllegalArgumentException( "You need to set minimum one test class" );
|
||||
}
|
||||
this.classes = classes;
|
||||
compiler = new JWebAssembly();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -115,6 +116,18 @@ public class WasmRule extends TemporaryFolder {
|
||||
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}
|
||||
*/
|
||||
@ -199,7 +212,6 @@ public class WasmRule extends TemporaryFolder {
|
||||
* if the compiling is failing
|
||||
*/
|
||||
public void compile() throws WasmException {
|
||||
compiler = new JWebAssembly();
|
||||
for( Class<?> clazz : classes ) {
|
||||
URL url = clazz.getResource( '/' + clazz.getName().replace( '.', '/' ) + ".class" );
|
||||
compiler.addFile( url );
|
||||
|
Loading…
x
Reference in New Issue
Block a user