mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00
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.
This commit is contained in:
parent
227ec14e6c
commit
edab1bb927
41 changed files with 1 additions and 204 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue