mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 06:31:15 +00:00
fix(bench): require --unstable flag in JavaScript (#14091)
This commit is contained in:
parent
53dac7451b
commit
b82ded84d3
7 changed files with 35 additions and 2 deletions
|
@ -2,6 +2,12 @@
|
|||
|
||||
use crate::itest;
|
||||
|
||||
itest!(requires_unstable {
|
||||
args: "bench bench/requires_unstable.js",
|
||||
exit_code: 70,
|
||||
output: "bench/requires_unstable.out",
|
||||
});
|
||||
|
||||
itest!(overloads {
|
||||
args: "bench --unstable bench/overloads.ts",
|
||||
exit_code: 0,
|
||||
|
|
1
cli/tests/testdata/bench/requires_unstable.js
vendored
Normal file
1
cli/tests/testdata/bench/requires_unstable.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Deno.bench("bench0", () => {});
|
1
cli/tests/testdata/bench/requires_unstable.out
vendored
Normal file
1
cli/tests/testdata/bench/requires_unstable.out
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Unstable API 'Deno.bench'. The --unstable flag must be provided.
|
Loading…
Add table
Add a link
Reference in a new issue