File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
src/main/java/com/example Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ This demo illustrates how to use the new experimental WebAssembly backend for Gr
6
6
7
7
This demo requires:
8
8
9
- 1 . An [ Early Access Build] ( https://github.com/graalvm/oracle-graalvm-ea-builds ) of Oracle GraalVM for JDK 25 or later.
10
- For example, using SDKMAN!: ` sdk install java 25 .ea.26 -graal `
9
+ 1 . An [ Early Access Build] ( https://github.com/graalvm/oracle-graalvm-ea-builds ) of Oracle GraalVM for JDK 26 or later.
10
+ For example, using SDKMAN!: ` sdk install java 26 .ea.3 -graal `
11
11
2 . The [ Binaryen toolchain] ( https://github.com/WebAssembly/binaryen ) in version 119 or later and on the system path.
12
12
For example, using Homebrew: ` brew install binaryen `
13
13
Original file line number Diff line number Diff line change @@ -37,14 +37,6 @@ public class WebMain {
37
37
public static void main (String [] args ) {
38
38
// Ensure file manager is initialized
39
39
JavacCompilerWrapper .getFm ();
40
- try {
41
- // TODO GR-62854 Here to ensure handleEvent and run is generated. Remove once objects
42
- // passed to @JS methods automatically have their SAM registered.
43
- sink (EventHandler .class .getDeclaredMethod ("handleEvent" , JSObject .class ));
44
- sink (Runnable .class .getDeclaredMethod ("run" ));
45
- } catch (NoSuchMethodException e ) {
46
- throw new RuntimeException (e );
47
- }
48
40
49
41
addEventListener (COMPILE_BUTTON , "click" , e -> compileCallback ());
50
42
addEventListener (INPUT , "keydown" , e -> {
@@ -67,9 +59,6 @@ private static void compileCallback() {
67
59
});
68
60
}
69
61
70
- @ JS ("" )
71
- private static native void sink (Object o );
72
-
73
62
/**
74
63
* Runs the given {@link Runnable} in {@code setTimeout} without delay.
75
64
* <p>
You can’t perform that action at this time.
0 commit comments