1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/runtime/js
snek 73fbd61bd0
fix: performance.timeOrigin (#26787)
`performance.timeOrigin` was being set from when JS started executing,
but `op_now` measures from an `std::time::Instant` stored in `OpState`,
which is created at a completely different time. This caused
`performance.timeOrigin` to be very incorrect. This PR corrects the
origin and also cleans up some of the timer code.

Compared to `Date.now()`, `performance`'s time origin is now
consistently within 5us (0.005ms) of system time.


![image](https://github.com/user-attachments/assets/0a7be04a-4f6d-4816-bd25-38a2e6136926)
2024-11-08 23:20:24 +01:00
..
01_errors.js feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
01_version.ts refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
06_util.js refactor: use web utils and lazy load utils from core (#22289) 2024-02-06 22:28:32 +01:00
10_permissions.js fix(unstable/worker): ensure import permissions are passed (#26101) 2024-10-10 14:01:42 +01:00
11_workers.js fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
30_os.js fix: validate integer values in Deno.exitCode setter (#24068) 2024-06-02 21:29:01 -04:00
40_fs_events.js fix: share inotify fd across watchers (#26200) 2024-10-23 09:22:58 +05:30
40_process.js fix(node): Pass NPM_PROCESS_STATE to subprocesses via temp file instead of env var (#25896) 2024-09-27 12:35:37 -07:00
40_signals.js fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
40_tty.js chore(tty): soft-remove Deno.isatty() (#25410) 2024-09-04 18:12:11 +10:00
41_prompt.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
90_deno_ns.js chore: cleanup unused deprecated code (#25839) 2024-09-26 02:21:38 +02:00
98_global_scope_shared.js refactor: cleanup unstable checks for WebGPU, FFI and FS APIs (#25586) 2024-09-12 12:27:16 +00:00
98_global_scope_window.js chore: cleanup remaining internals.future code (#25624) 2024-09-16 09:28:35 +10:00
98_global_scope_worker.js fix(runtime): use more null proto objects again (#25040) 2024-09-06 12:52:59 +02:00
99_main.js fix: performance.timeOrigin (#26787) 2024-11-08 23:20:24 +01:00
README.md chore: fix outdated note in runtime/js/README.md (#23673) 2024-05-05 01:30:53 +00:00

Runtime JavaScript Code

This directory contains Deno runtime code written in plain JavaScript.

Each file is an ES module and is prefixed with a number, telling in which order scripts should be loaded into V8 isolate.

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