Uh oh!
There was an error while loading. Please reload this page.
lib: fix WebIDL object and dictionary type conversion - #37047
Conversation
There was a problem hiding this comment.
For performance reasons, It's likely better to introduce a separate validator function for this.
aduh95
commented
Jan 29, 2021
So, should we run a benchmark CI for this, and which one? |
joyeecheung
commented
Feb 1, 2021
I think the benchmark/events/eventtarget.js is one you are looking for? |
aduh95
commented
Feb 1, 2021
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/928/ (queued) |
aduh95
commented
Feb 5, 2021
Benchmark results are OK: |
There was a problem hiding this comment.
Shouldn't you pass nullable: true instead of having a if (options !== null)?
There was a problem hiding this comment.
Right, this became possible when #35806 made options default to null.
9ee498a to
b6eb2bdComparenodejs-github-bot
commented
Feb 5, 2021
4762372 to
b6eb2bdComparenodejs-github-bot
commented
Feb 5, 2021
The PR labels should probably include the events label or the eventtarget label. |
nodejs-github-bot
commented
Feb 8, 2021
Trott
commented
Feb 9, 2021
Landed in beee538 |
b6eb2bd to
beee538ComparePR-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>
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.