From 2c621f5894b727cff4f2b0e7d045d9b579add3ed Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Mon, 5 Feb 2024 13:26:59 -0700 Subject: refactor(cli): Move op descriptions into Rust and prepare for op import (#22271) This moves the op sanitizer descriptions into Rust code and prepares for eventual op import from `ext:core/ops`. We cannot import these ops from `ext:core/ops` as the testing infrastructure ops are not always present. Changes: - Op descriptions live in `cli` code and are currently accessible via an op for the older sanitizer code - `phf` dep moved to workspace root so we can use it here - `ops.op_XXX` changed to to `op_XXX` to prepare for op imports later on. --- cli/tests/unit/ops_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/ops_test.ts b/cli/tests/unit/ops_test.ts index e62d85728..c3ffe3b4d 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 = 157; +const EXPECTED_OP_COUNT = 158; Deno.test(function checkExposedOps() { // @ts-ignore TS doesn't allow to index with symbol -- cgit v1.2.3