diff --git a/test/de/inetsoftware/jwebassembly/ScriptEngine.java b/test/de/inetsoftware/jwebassembly/ScriptEngine.java index c3b6632..b145762 100644 --- a/test/de/inetsoftware/jwebassembly/ScriptEngine.java +++ b/test/de/inetsoftware/jwebassembly/ScriptEngine.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 - 2020 Volker Berlin (i-net software) + * Copyright 2017 - 2021 Volker Berlin (i-net software) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,6 +31,7 @@ public enum ScriptEngine { SpiderMonkeyGC(true), NodeWatGC(true), SpiderMonkeyWatGC(true), + Wat2WasmGC(true), ; public final String useGC; diff --git a/test/de/inetsoftware/jwebassembly/WasmRule.java b/test/de/inetsoftware/jwebassembly/WasmRule.java index d3d82ba..dc1de10 100644 --- a/test/de/inetsoftware/jwebassembly/WasmRule.java +++ b/test/de/inetsoftware/jwebassembly/WasmRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 - 2020 Volker Berlin (i-net software) + * Copyright 2017 - 2021 Volker Berlin (i-net software) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -157,6 +157,7 @@ public class WasmRule extends TemporaryFolder { public void before( ScriptEngine script ) throws Exception { switch( script ) { case Wat2Wasm: + case Wat2WasmGC: // this is already part of execute and not only a compile return; default: @@ -540,6 +541,7 @@ public class WasmRule extends TemporaryFolder { processBuilder.environment().put( "NODE_PATH", getNodeModulePath() ); return processBuilder; case Wat2Wasm: + case Wat2WasmGC: return nodeJsCommand( prepareWat2Wasm( script ) ); default: throw new IllegalStateException( script.toString() ); diff --git a/test/de/inetsoftware/jwebassembly/Wat2Wasm.java b/test/de/inetsoftware/jwebassembly/Wat2Wasm.java index 114fa97..599139e 100644 --- a/test/de/inetsoftware/jwebassembly/Wat2Wasm.java +++ b/test/de/inetsoftware/jwebassembly/Wat2Wasm.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Volker Berlin (i-net software) + * Copyright 2019 - 2021 Volker Berlin (i-net software) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,7 +108,7 @@ class Wat2Wasm { searchExecuteable( file ); } else { String name = file.getName(); - if( name.equals( "wat2wasm" ) || name.equals( "wat2wasm.exe" ) ) { + if( name.equals( "wat2wasm" ) || name.equals( "wat2wasm.exe" ) || name.equals( "wat2wasm.bat" ) ) { command = file.getAbsolutePath(); } }