1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 01:59:06 -05:00
denoland-deno/cli/js
Kitson Kelly fc4819e1e0
refactor: Event and EventTarget implementations (#4707)
Refactors Event and EventTarget so that they better encapsulate their
non-public data as well as are more forward compatible with things like
DOM Nodes.

Moves `dom_types.ts` -> `dom_types.d.ts` which was always the intention,
it was a legacy of when we used to build the types from the code and the
limitations of the compiler.  There was a lot of cruft in `dom_types`
which shouldn't have been there, and mis-alignment to the DOM standards.
This generally has been eliminated, though we still have some minor
differences from the DOM (like the removal of some deprecated
methods/properties).

Adds `DOMException`.  Strictly it shouldn't inherit from `Error`, but
most browsers provide a stack trace when one is thrown, so the behaviour
in Deno actually better matches the browser.

`Event` still doesn't log to console like it does in the browser.  I
 wanted to get this raised and that could be an enhancement later on (it
 currently doesn't either).
2020-04-11 11:42:02 -04:00
..
compiler Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
ops BREAKING: Remove deprecated mkdir, mkdirSync APIs (#4615) 2020-04-09 11:15:56 -04:00
tests refactor: Event and EventTarget implementations (#4707) 2020-04-11 11:42:02 -04:00
web refactor: Event and EventTarget implementations (#4707) 2020-04-11 11:42:02 -04:00
buffer.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
build.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
colors.ts refactor(cli/fmt_errors): Format stack frames in prepareStackTrace() (#4706) 2020-04-11 02:08:11 -04:00
compiler.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
core.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
deno.ts refactor(cli/js/testing): Reduce testing interfaces (#4451) 2020-04-01 10:47:23 +02:00
diagnostics.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
diagnostics_util.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
error_stack.ts refactor(cli/fmt_errors): Format stack frames in prepareStackTrace() (#4706) 2020-04-11 02:08:11 -04:00
errors.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
file_info.ts Properly track isFile, isSymlink, isDirectory (#4541) 2020-03-31 13:46:25 -04:00
files.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
globals.ts refactor: Event and EventTarget implementations (#4707) 2020-04-11 11:42:02 -04:00
internals.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
io.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
lib.deno.ns.d.ts BREAKING: Remove deprecated mkdir, mkdirSync APIs (#4615) 2020-04-09 11:15:56 -04:00
lib.deno.shared_globals.d.ts refactor: Event and EventTarget implementations (#4707) 2020-04-11 11:42:02 -04:00
lib.deno.window.d.ts refactor: Event and EventTarget implementations (#4707) 2020-04-11 11:42:02 -04:00
lib.deno.worker.d.ts Remove __domTypes namespace (#4698) 2020-04-10 14:24:42 -04:00
main.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
net.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
permissions.ts Add require-await lint rule (#4401) 2020-03-20 09:38:34 -04:00
plugins.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
process.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
rbtree.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
read_file.ts Remove doc strings from cli/js TS files (#4329) 2020-03-13 10:22:22 +01:00
repl.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
runtime.ts Simplify timer with macrotask callback (#4385) 2020-03-19 10:45:28 -04:00
runtime_main.ts refactor: Event and EventTarget implementations (#4707) 2020-04-11 11:42:02 -04:00
runtime_worker.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
signals.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
symbols.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
testing.ts fix: async ops sanitizer false positives in timers (#4602) 2020-04-03 19:20:36 +02:00
tls.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
util.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
version.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
write_file.ts chmod should throw on Windows (#4446) 2020-03-20 16:03:04 -04:00