| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
For performance reasons, It's likely better to introduce a separate validator function for this.
Sorry, something went wrong.
|
So, should we run a benchmark CI for this, and which one? |
Sorry, something went wrong.
I think the benchmark/events/eventtarget.js is one you are looking for? |
Sorry, something went wrong.
|
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/928/ (queued) |
Sorry, something went wrong.
|
Benchmark results are OK: confidence improvement accuracy (*) (**) (***) events/eventtarget.jslisteners=10 n=1000000 -1.05 % ±4.82% ±6.42% ±8.37% events/eventtarget.jslisteners=1 n=1000000 -1.17 % ±2.20% ±2.93% ±3.83% events/eventtarget.jslisteners=5 n=1000000 0.38 % ±4.03% ±5.40% ±7.11% Be aware that when doing many comparisons the risk of a false-positive result increases. In this case, there are 3 comparisons, you can thus expect the following amount of false-positive results: 0.15 false positives, when considering a 5% risk acceptance (*, **, ***), 0.03 false positives, when considering a 1% risk acceptance (**, ***), 0.00 false positives, when considering a 0.1% risk acceptance (***) |
Sorry, something went wrong.
There was a problem hiding this comment.
Shouldn't you pass nullable: true instead of having a if (options !== null)?
Sorry, something went wrong.
There was a problem hiding this comment.
Right, this became possible when #35806 made options default to null.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
|
The PR labels should probably include the events label or the eventtarget label. |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: #37047 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #37047 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #37047 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #37047 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #37047 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
| Back | FazBrowse Home | New Git URL |
The WebIDL object, record<K, V>, and Dictionary type conversion algorithm implicitly allows Arrays and Functions:
This is also necessary to prevent #37028 from being a breaking change.