refactor: replace .forEach()
with for-of
(#39691)
* refactor: replace `.forEach()` with `for-of` * refactor docs/fiddles/features/web-hid/renderer.js
This commit is contained in:
parent
7858921a1f
commit
0b0707145b
32 changed files with 144 additions and 132 deletions
|
@ -1312,10 +1312,10 @@ describe('webContents module', () => {
|
|||
'default_public_and_private_interfaces',
|
||||
'disable_non_proxied_udp'
|
||||
] as const;
|
||||
policies.forEach((policy) => {
|
||||
for (const policy of policies) {
|
||||
w.webContents.setWebRTCIPHandlingPolicy(policy);
|
||||
expect(w.webContents.getWebRTCIPHandlingPolicy()).to.equal(policy);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue