mirror of
https://github.com/denoland/deno.git
synced 2024-12-19 13:54:54 -05:00
96cfe82664
- Removes the origin call, since all origins are the same for an isolate (ie: the main module) - Collects the `TestDescription`s and sends them all at the same time inside of an Arc, allowing us to (later on) re-use these instead of cloning. Needs a follow-up pass to remove all the cloning, but that's a thread that is pretty long to pull --------- Signed-off-by: Matt Mastracci <matthew@mastracci.com>
17 lines
475 B
TypeScript
17 lines
475 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
const EXPECTED_OP_COUNT = 12;
|
|
|
|
Deno.test(function checkExposedOps() {
|
|
// @ts-ignore TS doesn't allow to index with symbol
|
|
const core = Deno[Deno.internal].core;
|
|
const opNames = Object.keys(core.ops);
|
|
|
|
if (opNames.length !== EXPECTED_OP_COUNT) {
|
|
throw new Error(
|
|
`Expected ${EXPECTED_OP_COUNT} ops, but got ${opNames.length}:\n${
|
|
opNames.join("\n")
|
|
}`,
|
|
);
|
|
}
|
|
});
|