From edab1bb92735de0d62b4cd7f46d067da92b990a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 7 Feb 2024 04:15:11 +0100 Subject: [PATCH] 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. --- cli/tests/integration/run_tests.rs | 114 ------------------ cli/tests/testdata/run/ffi/unstable_ffi_1.js | 1 - .../testdata/run/ffi/unstable_ffi_1.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_10.js | 1 - .../testdata/run/ffi/unstable_ffi_10.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_11.js | 1 - .../testdata/run/ffi/unstable_ffi_11.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_12.js | 1 - .../testdata/run/ffi/unstable_ffi_12.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_13.js | 1 - .../testdata/run/ffi/unstable_ffi_13.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_14.js | 1 - .../testdata/run/ffi/unstable_ffi_14.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_15.js | 1 - .../testdata/run/ffi/unstable_ffi_15.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_16.js | 1 - .../testdata/run/ffi/unstable_ffi_16.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_17.js | 1 - .../testdata/run/ffi/unstable_ffi_17.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_18.js | 1 - .../testdata/run/ffi/unstable_ffi_18.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_19.js | 1 - .../testdata/run/ffi/unstable_ffi_19.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_2.js | 5 - .../testdata/run/ffi/unstable_ffi_2.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_3.js | 7 -- .../testdata/run/ffi/unstable_ffi_3.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_4.js | 4 - .../testdata/run/ffi/unstable_ffi_4.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_5.js | 6 - .../testdata/run/ffi/unstable_ffi_5.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_6.js | 1 - .../testdata/run/ffi/unstable_ffi_6.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_7.js | 1 - .../testdata/run/ffi/unstable_ffi_7.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_8.js | 1 - .../testdata/run/ffi/unstable_ffi_8.js.out | 1 - cli/tests/testdata/run/ffi/unstable_ffi_9.js | 1 - .../testdata/run/ffi/unstable_ffi_9.js.out | 1 - cli/tests/unit/ops_test.ts | 2 +- runtime/js/99_main.js | 33 ----- 41 files changed, 1 insertion(+), 204 deletions(-) delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_1.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_1.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_10.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_10.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_11.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_11.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_12.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_12.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_13.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_13.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_14.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_14.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_15.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_15.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_16.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_16.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_17.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_17.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_18.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_18.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_19.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_19.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_2.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_2.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_3.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_3.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_4.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_4.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_5.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_5.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_6.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_6.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_7.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_7.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_8.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_8.js.out delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_9.js delete mode 100644 cli/tests/testdata/run/ffi/unstable_ffi_9.js.out diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 17f4a39813..654854204b 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -3603,120 +3603,6 @@ itest!(fetch_async_error_stack { exit_code: 1, }); -itest!(unstable_ffi_1 { - args: "run run/ffi/unstable_ffi_1.js", - output: "run/ffi/unstable_ffi_1.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_2 { - args: "run run/ffi/unstable_ffi_2.js", - output: "run/ffi/unstable_ffi_2.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_3 { - args: "run run/ffi/unstable_ffi_3.js", - output: "run/ffi/unstable_ffi_3.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_4 { - args: "run run/ffi/unstable_ffi_4.js", - output: "run/ffi/unstable_ffi_4.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_5 { - args: "run run/ffi/unstable_ffi_5.js", - output: "run/ffi/unstable_ffi_5.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_6 { - args: "run run/ffi/unstable_ffi_6.js", - output: "run/ffi/unstable_ffi_6.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_7 { - args: "run run/ffi/unstable_ffi_7.js", - output: "run/ffi/unstable_ffi_7.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_8 { - args: "run run/ffi/unstable_ffi_8.js", - output: "run/ffi/unstable_ffi_8.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_9 { - args: "run run/ffi/unstable_ffi_9.js", - output: "run/ffi/unstable_ffi_9.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_10 { - args: "run run/ffi/unstable_ffi_10.js", - output: "run/ffi/unstable_ffi_10.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_11 { - args: "run run/ffi/unstable_ffi_11.js", - output: "run/ffi/unstable_ffi_11.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_12 { - args: "run run/ffi/unstable_ffi_12.js", - output: "run/ffi/unstable_ffi_12.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_13 { - args: "run run/ffi/unstable_ffi_13.js", - output: "run/ffi/unstable_ffi_13.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_14 { - args: "run run/ffi/unstable_ffi_14.js", - output: "run/ffi/unstable_ffi_14.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_15 { - args: "run run/ffi/unstable_ffi_15.js", - output: "run/ffi/unstable_ffi_15.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_16 { - args: "run run/ffi/unstable_ffi_16.js", - output: "run/ffi/unstable_ffi_16.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_17 { - args: "run run/ffi/unstable_ffi_17.js", - output: "run/ffi/unstable_ffi_17.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_18 { - args: "run run/ffi/unstable_ffi_18.js", - output: "run/ffi/unstable_ffi_18.js.out", - exit_code: 70, -}); - -itest!(unstable_ffi_19 { - args: "run run/ffi/unstable_ffi_19.js", - output: "run/ffi/unstable_ffi_19.js.out", - exit_code: 70, -}); - itest!(event_listener_error { args: "run --quiet run/event_listener_error.ts", output: "run/event_listener_error.ts.out", diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_1.js b/cli/tests/testdata/run/ffi/unstable_ffi_1.js deleted file mode 100644 index 8ef77e71e4..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_1.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_load({ path: "", symbols: {} }); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_1.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_1.js.out deleted file mode 100644 index fe172c2c60..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_1.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.dlopen'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_10.js b/cli/tests/testdata/run/ffi/unstable_ffi_10.js deleted file mode 100644 index d291c6bbc8..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_10.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_i16(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_10.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_10.js.out deleted file mode 100644 index b9fe500b52..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_10.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getInt16'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_11.js b/cli/tests/testdata/run/ffi/unstable_ffi_11.js deleted file mode 100644 index fc00fac38e..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_11.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_u32(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_11.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_11.js.out deleted file mode 100644 index 74039db43f..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_11.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getUint32'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_12.js b/cli/tests/testdata/run/ffi/unstable_ffi_12.js deleted file mode 100644 index 6f085115d5..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_12.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_i32(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_12.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_12.js.out deleted file mode 100644 index 1a366b8c6f..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_12.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getInt32'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_13.js b/cli/tests/testdata/run/ffi/unstable_ffi_13.js deleted file mode 100644 index c3b5105db1..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_13.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_u64(null, 0, new Uint32Array(2)); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_13.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_13.js.out deleted file mode 100644 index 93afbe5eda..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_13.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getBigUint64'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_14.js b/cli/tests/testdata/run/ffi/unstable_ffi_14.js deleted file mode 100644 index 2d095c5d66..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_14.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_f32(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_14.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_14.js.out deleted file mode 100644 index 7f4c900f8b..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_14.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getFloat32'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_15.js b/cli/tests/testdata/run/ffi/unstable_ffi_15.js deleted file mode 100644 index a3cf2b0c5b..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_15.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_f64(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_15.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_15.js.out deleted file mode 100644 index 5e2c559685..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_15.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getFloat64'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_16.js b/cli/tests/testdata/run/ffi/unstable_ffi_16.js deleted file mode 100644 index 2bf3759b36..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_16.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_ptr_value(null, new Uint32Array(2)); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_16.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_16.js.out deleted file mode 100644 index 05362e5b31..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_16.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointer#value'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_17.js b/cli/tests/testdata/run/ffi/unstable_ffi_17.js deleted file mode 100644 index 595727092a..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_17.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_get_buf(null, 0, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_17.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_17.js.out deleted file mode 100644 index c9d6ca8215..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_17.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getArrayBuffer'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_18.js b/cli/tests/testdata/run/ffi/unstable_ffi_18.js deleted file mode 100644 index fe6530aaa4..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_18.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_ptr_create(1); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_18.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_18.js.out deleted file mode 100644 index 2474f86bd0..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_18.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointer#create'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_19.js b/cli/tests/testdata/run/ffi/unstable_ffi_19.js deleted file mode 100644 index 97d6500229..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_19.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_ptr_equals(null, null); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_19.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_19.js.out deleted file mode 100644 index 8d97f87e94..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_19.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointer#equals'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_2.js b/cli/tests/testdata/run/ffi/unstable_ffi_2.js deleted file mode 100644 index c99b1e586d..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_2.js +++ /dev/null @@ -1,5 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_call_ptr(null, { - name: null, - parameters: [], - result: "void", -}, []); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_2.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_2.js.out deleted file mode 100644 index 094a69b5b2..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_2.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafeFnPointer#call'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_3.js b/cli/tests/testdata/run/ffi/unstable_ffi_3.js deleted file mode 100644 index 075fb3a547..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_3.js +++ /dev/null @@ -1,7 +0,0 @@ -const { op_ffi_call_ptr_nonblocking } = Deno[Deno.internal].core - .ensureFastOps(); -op_ffi_call_ptr_nonblocking(null, { - name: null, - parameters: [], - result: "void", -}, []); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_3.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_3.js.out deleted file mode 100644 index 094a69b5b2..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_3.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafeFnPointer#call'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_4.js b/cli/tests/testdata/run/ffi/unstable_ffi_4.js deleted file mode 100644 index c62905ead4..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_4.js +++ /dev/null @@ -1,4 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_ptr_of( - new Uint8Array(0), - new Uint32Array(2), -); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_4.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_4.js.out deleted file mode 100644 index 55bbc063d7..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_4.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointer#of'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_5.js b/cli/tests/testdata/run/ffi/unstable_ffi_5.js deleted file mode 100644 index 416c781752..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_5.js +++ /dev/null @@ -1,6 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_buf_copy_into( - null, - 0, - new Uint8Array(0), - 0, -); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_5.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_5.js.out deleted file mode 100644 index 81dd950ac8..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_5.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#copyInto'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_6.js b/cli/tests/testdata/run/ffi/unstable_ffi_6.js deleted file mode 100644 index 7a079f5fb8..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_6.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_cstr_read(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_6.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_6.js.out deleted file mode 100644 index b48fc264f3..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_6.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getCString'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_7.js b/cli/tests/testdata/run/ffi/unstable_ffi_7.js deleted file mode 100644 index 1f9e5f0c05..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_7.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_u8(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_7.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_7.js.out deleted file mode 100644 index 935ebe195b..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_7.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getUint8'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_8.js b/cli/tests/testdata/run/ffi/unstable_ffi_8.js deleted file mode 100644 index cbd0ec9eca..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_8.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_i8(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_8.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_8.js.out deleted file mode 100644 index 02883d0c38..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_8.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getInt8'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_9.js b/cli/tests/testdata/run/ffi/unstable_ffi_9.js deleted file mode 100644 index 9e8da12db1..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_9.js +++ /dev/null @@ -1 +0,0 @@ -Deno[Deno.internal].core.ops.op_ffi_read_u16(null, 0); diff --git a/cli/tests/testdata/run/ffi/unstable_ffi_9.js.out b/cli/tests/testdata/run/ffi/unstable_ffi_9.js.out deleted file mode 100644 index 97ac970170..0000000000 --- a/cli/tests/testdata/run/ffi/unstable_ffi_9.js.out +++ /dev/null @@ -1 +0,0 @@ -Unstable API 'Deno.UnsafePointerView#getUint16'. The `--unstable-ffi` flag must be provided. diff --git a/cli/tests/unit/ops_test.ts b/cli/tests/unit/ops_test.ts index ae225c78da..aca0d655a0 100644 --- a/cli/tests/unit/ops_test.ts +++ b/cli/tests/unit/ops_test.ts @@ -1,6 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -const EXPECTED_OP_COUNT = 45; +const EXPECTED_OP_COUNT = 16; Deno.test(function checkExposedOps() { // @ts-ignore TS doesn't allow to index with symbol diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 191d123b98..8f8a36db8b 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",