diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-02-07 04:15:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 04:15:11 +0100 |
commit | edab1bb92735de0d62b4cd7f46d067da92b990a0 (patch) | |
tree | 7c7543cd889d1a75ec2ecea365e9303ad232eb04 /runtime/js | |
parent | 227ec14e6ca596bb4ddcb2ee2ec82311f0ac87e5 (diff) |
chore: don't expose FFI ops to user code (#22313)
This commit removes some not really necessary FFI tests and in effect
removes them from being accessible from the user code.
This lowers the number of ops accessible to user code to 16.
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/99_main.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 191d123b9..8f8a36db8 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -586,39 +586,6 @@ const NOT_IMPORTED_OPS = [ "op_napi_open", "op_npm_process_state", - // TODO(bartlomieju): used in integration tests for FFI API, to check if - // they require unstable flag. These tests are questionable and should be - // removed (most likely). - "op_ffi_buf_copy_into", - "op_ffi_call_nonblocking", - "op_ffi_call_ptr_nonblocking", - "op_ffi_call_ptr", - "op_ffi_cstr_read", - "op_ffi_get_buf", - "op_ffi_get_static", - "op_ffi_load", - "op_ffi_ptr_create", - "op_ffi_ptr_equals", - "op_ffi_ptr_of_exact", - "op_ffi_ptr_of", - "op_ffi_ptr_offset", - "op_ffi_ptr_value", - "op_ffi_read_bool", - "op_ffi_read_f32", - "op_ffi_read_f64", - "op_ffi_read_i16", - "op_ffi_read_i32", - "op_ffi_read_i64", - "op_ffi_read_i8", - "op_ffi_read_ptr", - "op_ffi_read_u16", - "op_ffi_read_u32", - "op_ffi_read_u64", - "op_ffi_read_u8", - "op_ffi_unsafe_callback_close", - "op_ffi_unsafe_callback_create", - "op_ffi_unsafe_callback_ref", - // TODO(bartlomieju): used in a regression test, but probably not needed // anymore if ops are not user accessible. "op_spawn_child", |