1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 16:49:18 -05:00
denoland-deno/cli/tests/testdata/run/ffi
Bartek Iwańczuk 427b73c3ec
feat: warn when using --unstable, prefer granular flags (#21452)
This commit deprecates "--unstable" flag. 

When "--unstable" flag is encountered a warning like this is printed:
```
The `--unstable` flag is deprecated, use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
```
When "--unstable" flag is used and an unstable API is called an
additional warning like this is printed for each API call:
```
The `Deno.dlopen` API was used with `--unstable` flag. The `--unstable` flag is deprecated, use granular `--unstable-ffi` instead. 
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
```
When no "--unstable-*" flag is provided and an unstable API is called
following
warning is issued before exiting:
```
Unstable API 'Deno.dlopen'. The `--unstable-ffi` flag must be provided.
```

---------

Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-23 15:33:07 +01:00
..
unstable_ffi_1.js refactor: remove Deno.core (#16881) 2023-01-24 18:54:10 +01:00
unstable_ffi_1.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_2.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_2.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_3.js chore(cli): bump deno_core (#21790) 2024-01-04 18:53:04 +00:00
unstable_ffi_3.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_4.js refactor: remove Deno.core (#16881) 2023-01-24 18:54:10 +01:00
unstable_ffi_4.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_5.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_5.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_6.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_6.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_7.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_7.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_8.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_8.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_9.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_9.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_10.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_10.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_11.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_11.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_12.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_12.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_13.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_13.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_14.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_14.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_15.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_15.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_16.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_16.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_17.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_17.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_18.js fix(serde_v8): Do not coerce values in serde_v8 (#19569) 2023-06-23 12:52:48 +02:00
unstable_ffi_18.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
unstable_ffi_19.js feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
unstable_ffi_19.js.out feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00