Commit 2c2892b
src: set ModuleWrap internal fields only once
There is no need to initialize the internal fields to undefined
and then initialize them to something else in the caller. Simply
pass the internal fields into the constructor to initialize
them just once.
PR-URL: #49391
Backport-PR-URL: #51004
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent 425e011 commit 2c2892bCopy full SHA for 2c2892b
File tree
Expand file treeCollapse file tree
2 files changed
+26
-18
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
2 files changed
+26
-18
lines changedOpen diff view settings
Collapse file
+23-17Lines changed: 23 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
59 | 61 | |
60 | 62 | |
61 | | - |
62 | 63 | |
63 | | - |
64 | | - |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
65 | 71 | |
66 | 72 | |
67 | 73 | |
| ||
79 | 85 | |
80 | 86 | |
81 | 87 | |
82 | | - |
| 88 | + |
| 89 | + |
| 90 | + |
83 | 91 | |
84 | 92 | |
85 | 93 | |
| ||
227 | 235 | |
228 | 236 | |
229 | 237 | |
230 | | - |
231 | | - |
232 | | - |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
237 | 238 | |
238 | 239 | |
239 | 240 | |
240 | | - |
241 | | - |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
242 | 248 | |
243 | 249 | |
244 | 250 | |
|
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
75 | | - |
| 75 | + |
| 76 | + |
| 77 | + |
76 | 78 | |
77 | 79 | |
78 | 80 | |
|
0 commit comments