1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 09:39:08 -05:00
denoland-deno/runtime/js
Casper Beyer f3751e498f
feat(cli): add test permissions to Deno.test (#10188)
This commits adds adds "permissions" option to the test definitions 
which allows tests to run with different permission sets than 
the process's permission.

The change will only be in effect within the test function, once the 
test has completed the original process permission set is restored.

Test permissions cannot exceed the process's permission.
You can only narrow or drop permissions, failure to acquire a 
permission results in an error being thrown and the test case will fail.
2021-04-25 23:38:59 +02:00
..
00_bootstrap_namespace.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
01_build.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
01_errors.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
01_version.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
01_web_util.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
06_util.js refactor: move Console to op_crates/console (#9770) 2021-03-12 21:23:59 +01:00
11_workers.js feat(cli): add test permissions to Deno.test (#10188) 2021-04-25 23:38:59 +02:00
12_io.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
13_buffer.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
30_fs.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
30_metrics.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
30_net.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
30_os.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_compiler_api.js refactor(cli): rename Deno.emit() bundle options to "module" and "classic" (#10332) 2021-04-26 06:54:57 +10: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 refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_files.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_fs_events.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_http.js fix(runtime/js/http): cancel body on response failure (#10225) 2021-04-23 12:34:04 +02:00
40_net_unstable.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
40_performance.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
40_permissions.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_plugins.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_process.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_read_file.js fix(runtime/readFile*): close resources on error during read (#10059) 2021-04-08 16:36:52 +02:00
40_signals.js refactor(deno): remove concept of bin & json ops (#10145) 2021-04-12 15:55:05 -04:00
40_testing.js feat(cli): add test permissions to Deno.test (#10188) 2021-04-25 23:38:59 +02:00
40_tls.js revert: Conn type changes in #10012 and #10061 (#10255) 2021-04-20 10:12:33 +10: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 chore: deprecate Deno.Buffer and read/write utils (#9793) 2021-04-06 00:05:36 +02:00
41_prompt.js chore: use strict mode for internal runtime, core, and op_crates js (#9391) 2021-02-04 23:18:32 +01:00
90_deno_ns.js feat(runtime): stabilize Deno.fstat and Deno.fstatSync (#10108) 2021-04-12 11:27:38 +02:00
99_main.js refactor(core): move op cache sync responsibility to rust space (#10340) 2021-04-25 22:00:05 +02: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