fix(bench): require --unstable flag in JavaScript (#14091)

This commit is contained in:
Bartek Iwańczuk 2022-03-23 16:33:42 +01:00 committed by GitHub
parent 53dac7451b
commit b82ded84d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 35 additions and 2 deletions

View file

@ -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,

View file

@ -0,0 +1 @@
Deno.bench("bench0", () => {});

View file

@ -0,0 +1 @@
Unstable API 'Deno.bench'. The --unstable flag must be provided.