lib: optimize internal Web IDL dictionaries · nodejs/node@230a7fc · GitHub
Skip to content

Commit 230a7fc

Browse files
panvaaduh95
authored andcommitted
lib: optimize internal Web IDL dictionaries
Flatten dictionary members at construction while preserving inheritance order. Skip member scans for nullish inputs without defaults or required members, and define own descriptor properties to avoid inherited setters. Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #65857 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 55db777 commit 230a7fc

2 files changed

Lines changed: 108 additions & 44 deletions

File tree

‎lib/internal/webidl.js‎

Lines changed: 41 additions & 44 deletions
Lines changed: 67 additions & 0 deletions

0 commit comments

Comments
 (0)