0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-04 01:44:26 -05:00
deno/runtime/js
Steven Guerrero adc2f08c17
feat: Add configurable permissions for Workers (#8215)
This commit adds new option to "Worker" Web API that allows to 
configure permissions.

New "Worker.deno.permissions" option can be used to define limited
permissions to the worker thread by either:
- inherit set of parent thread permissions
- use limited subset of parent thread permissions
- revoke all permissions (full sandbox)

In order to achieve this functionality "CliModuleLoader"
was modified to accept "initial permissions", which are used
for top module loading (ie. uses parent thread permission set
to load top level module of a worker).
2021-01-06 21:31:16 +01:00
..
00_bootstrap_namespace.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
01_build.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
01_colors.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
01_errors.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
01_internals.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
01_version.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
01_web_util.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
02_console.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
06_util.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
10_dispatch_minimal.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
11_timers.js fix: stronger input checking for setTimeout; add function overload (#8957) 2021-01-06 08:53:30 -05:00
11_workers.js feat: Add configurable permissions for Workers (#8215) 2021-01-06 21:31:16 +01:00
12_io.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
13_buffer.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
30_files.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
30_fs.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
30_metrics.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
30_net.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
30_os.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_compiler_api.js refactor(cli): runtime compiler APIs consolidated to Deno.emit() (#8799) 2021-01-01 08:43:54 +11:00
40_diagnostics.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_error_stack.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_fs_events.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_net_unstable.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_performance.js fix: align performance API to spec using WPT (#9012) 2021-01-06 02:56:40 +01:00
40_permissions.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_plugins.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_process.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_read_file.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_signals.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_testing.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_tls.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_tty.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
40_write_file.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
41_prompt.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
90_deno_ns.js refactor(cli): runtime compiler APIs consolidated to Deno.emit() (#8799) 2021-01-01 08:43:54 +11:00
99_main.js refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
README.md refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +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