Skip to content

Commit 154b910

Browse files
committed
Wasm runtime: add stubs for caml_create_file and caml_mount_autoload
1 parent 559fbce commit 154b910

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

runtime/wasm/fs.wat

+9
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@
140140
(call $caml_raise_no_such_file (local.get 0))
141141
(ref.i31 (i32.const 0)))
142142

143+
(func (export "caml_create_file")
144+
(param (ref eq)) (param (ref eq)) (result (ref eq))
145+
(call $caml_raise_no_such_file (local.get 0))
146+
(ref.i31 (i32.const 0)))
147+
143148
(func (export "caml_fs_init") (result (ref eq))
144149
(ref.i31 (i32.const 0)))
145150

@@ -166,4 +171,8 @@
166171
(catch $javascript_exception
167172
(call $caml_handle_sys_error (pop externref))
168173
(return (ref.i31 (i32.const 0))))))
174+
175+
(func (export "caml_mount_autoload")
176+
(param (ref eq) (ref eq)) (result (ref eq))
177+
(ref.i31 (i32.const 0)))
169178
)

0 commit comments

Comments
 (0)