1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/runtime/js
Bartek Iwańczuk 13a91a69f8
refactor: remove imported ops from Deno.core.ops (#22194)
This commit adds a list of ops to `runtime/99_main.js` that are
currently relying on getting them from `Deno.core.ops`. All ops that are not
present in the list are removed from `Deno.core.ops` on startup (they are
imported from "virtual op module" - `ext:core/ops`) making them effectively
inaccessible to user code.

This change lowers the number of ops exposed to user code from 650 to
around 260. This number should be gradually decreased in follow-up PRs.
2024-01-31 22:39:56 +01:00
..
01_errors.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
01_version.ts refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
06_util.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
10_permissions.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
11_workers.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
13_buffer.js feat: Add warnings for more deprecated APIs (#21992) 2024-01-24 14:57:54 +01:00
30_os.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
40_fs_events.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
40_http.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
40_process.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
40_signals.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
40_tty.js refactor: Use virtul ops module (#22175) 2024-01-29 22:02:26 +01:00
41_prompt.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
90_deno_ns.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
98_global_scope_shared.js refactor: Use virtul ops module (#22175) 2024-01-29 22:02:26 +01:00
98_global_scope_window.js refactor: Use virtul ops module (#22175) 2024-01-29 22:02:26 +01:00
98_global_scope_worker.js refactor: Use virtul ops module (#22175) 2024-01-29 22:02:26 +01:00
99_main.js refactor: remove imported ops from Deno.core.ops (#22194) 2024-01-31 22:39:56 +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