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
Kamil Ogórek 7ce2b58bcf
feat(unstable): Add "Deno.osUptime()" API (#17179)
This PR adds support for `Deno.osUptime` which reports number of seconds
since os was booted. It will allow us to be compatible with Node's `os.uptime` -
https://nodejs.org/api/os.html#osuptime

Partially based on
https://docs.rs/uptime_lib/latest/src/uptime_lib/lib.rs.html
2022-12-27 00:16:12 +01:00
..
01_build.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_errors.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_version.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_web_util.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
06_util.js refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-19 13:57:37 +01:00
10_permissions.js chore: Update dlint (#17031) 2022-12-20 03:37:50 +01:00
11_workers.js experiment(ext/web): Don't expose event classes during the bootstrap phase (#16213) 2022-10-24 16:14:17 +02:00
12_io.js chore: Update dlint (#17031) 2022-12-20 03:37:50 +01:00
13_buffer.js refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-19 13:57:37 +01:00
30_fs.js chore: Update dlint (#17031) 2022-12-20 03:37:50 +01:00
30_os.js feat(unstable): Add "Deno.osUptime()" API (#17179) 2022-12-27 00:16:12 +01:00
40_diagnostics.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
40_files.js feat(core): add Deno.core.writeAll(rid, chunk) (#16228) 2022-10-10 10:28:35 +02:00
40_fs_events.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_http.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_process.js chore: Update dlint (#17031) 2022-12-20 03:37:50 +01:00
40_read_file.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_signals.js chore: Update dlint (#17031) 2022-12-20 03:37:50 +01:00
40_spawn.js chore: Update dlint (#17031) 2022-12-20 03:37:50 +01:00
40_tty.js feat: Stabilize Deno.consoleSize() API (#15933) 2022-10-26 00:23:21 +02:00
40_write_file.js feat: support createNew in Deno.writeFile (#17023) 2022-12-13 05:12:49 +01:00
41_prompt.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
90_deno_ns.js feat(unstable): Add "Deno.osUptime()" API (#17179) 2022-12-27 00:16:12 +01:00
98_global_scope.js feat(core): Ability to create snapshots from existing snapshots (#16597) 2022-11-21 14:36:26 +01:00
99_main.js chore: Update dlint (#17031) 2022-12-20 03:37:50 +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