1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00
denoland-deno/runtime/js
Bartek Iwańczuk d8afd56838
feat(test): Add more overloads for "Deno.test" (#12749)
This commit adds 4 more overloads to "Deno.test()" API.

```
// Deno.test(function testName() { });
export function test(fn: (t: TestContext) => void | Promise<void>): void;

// Deno.test("test name", { only: true }, function() { });
export function test(
  name: string,
  options: Omit<TestDefinition, "name">,
  fn: (t: TestContext) => void | Promise<void>,
): void;

// Deno.test({ name: "test name" }, function() { });
export function test(
  options: Omit<TestDefinition, "fn">,
  fn: (t: TestContext) => void | Promise<void>,
): void;

// Deno.test({ only: true }, function testName() { });
export function test(
  options: Omit<TestDefinition, "fn" | "name">,
  fn: (t: TestContext) => void | Promise<void>,
): void;
```
2021-11-23 14:57:51 +01:00
..
01_build.js refactor: use primordials in runtime/, part1 (#11241) 2021-07-03 16:58:08 +02:00
01_errors.js refactor: use primordials in runtime/, part1 (#11241) 2021-07-03 16:58:08 +02:00
01_version.js refactor: use primordials in runtime/, part1 (#11241) 2021-07-03 16:58:08 +02:00
01_web_util.js refactor: deduplicate defineEventHandler util (#12367) 2021-10-08 09:53:31 +02:00
06_util.js feat(workers): Make the Deno namespace configurable and unfrozen (#11888) 2021-08-31 19:33:03 +02:00
10_permissions.js fix(runtime/ops/worker_host): move permission arg parsing to Rust (#12297) 2021-10-13 13:04:44 -04:00
11_workers.js fix(runtime/ops/worker_host): move permission arg parsing to Rust (#12297) 2021-10-13 13:04:44 -04:00
12_io.js feat(core): streams (#12596) 2021-11-09 19:26:17 +01:00
13_buffer.js refactor: use primordials for 13_buffer.js and 30_fs.js (#11247) 2021-07-03 17:17:23 +02:00
30_fs.js feat(unstable): Add file locking APIs (#11746) 2021-08-24 15:21:31 +02:00
30_os.js chore: various op cleanup (#12329) 2021-10-05 22:38:27 +02:00
40_compiler_api.js refactor: use primordials in runtime/, part2 (#11248) 2021-07-04 00:17:52 +02:00
40_diagnostics.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
40_error_stack.js fix(cli/fmt_errors): Abbreviate long data URLs in stack traces (#12127) 2021-09-18 15:40:04 +02:00
40_files.js refactor: use primordials in runtime/, part2 (#11248) 2021-07-04 00:17:52 +02:00
40_fs_events.js refactor: use primordials in runtime/, part2 (#11248) 2021-07-04 00:17:52 +02:00
40_http.js refactor: deno_http op crate (#11335) 2021-07-12 12:44:49 +02:00
40_process.js cleanup(runtime): flatten op_kill's args (#12214) 2021-09-25 01:33:15 +02:00
40_read_file.js fix(runtime): support reading /proc using readFile (#12839) 2021-11-22 16:53:58 +01:00
40_signals.js feat(runtime): add Deno.addSignalListener API (#12512) 2021-10-26 12:03:38 +09:00
40_testing.js feat(test): Add more overloads for "Deno.test" (#12749) 2021-11-23 14:57:51 +01:00
40_tty.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_write_file.js feat: support AbortSignal in writeFile (#11568) 2021-08-06 10:21:29 -07:00
41_prompt.js refactor: use primordials in runtime/, part2 (#11248) 2021-07-04 00:17:52 +02:00
90_deno_ns.js feat: stabilize Deno.startTls (#12581) 2021-10-29 17:13:31 +02:00
99_main.js feat(ext/web): BYOB support for ReadableStream (#12616) 2021-11-03 10:47:40 +01:00
README.md feat: add --location=<href> and globalThis.location (#7369) 2021-01-07 19:06:08 +01:00

Runtime JavaScript Code

This directory contains Deno runtime code written in plain JavaScript.

Each file is a plain, old script, not ES modules. The reason is that snapshotting ES modules is much harder, especially if one needs to manipulate global scope (like in case of Deno).

Each file is prefixed with a number, telling in which order scripts should be loaded into V8 isolate. This is temporary solution and we're striving not to require specific order (though it's not 100% obvious if that's feasible).

Deno Web APIs

This directory facilities Web APIs that are available in Deno.

Please note, that some implementations might not be completely aligned with specification.

Some Web APIs are using ops under the hood, eg. console, performance.

Implemented Web APIs