Skip to content

Commit 987b5ca

Browse files
committed
One more example.
1 parent 234714f commit 987b5ca

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

jscomp/test/FFI.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/FFI.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ let canUseCanvas: unit => bool = %ffi(`
55
return !!document.createElement('canvas').getContext;
66
}
77
`)
8+
9+
let add: (int, int) => int = %ffi(`(x,y)=>x+y`)

0 commit comments

Comments
 (0)