Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Commit2c2892b
src: set ModuleWrap internal fields only once
There is no need to initialize the internal fields to undefinedand then initialize them to something else in the caller. Simplypass the internal fields into the constructor to initializethem just once.PR-URL:#49391Backport-PR-URL:#51004Reviewed-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 parent425e011 commit2c2892b
2 files changed
+26
-18
lines changedLines 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 |
| |
|
Lines 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
Comments
(0)