Skip to content

Commit 533ce0a

Browse files
jazellyaduh95
andauthored
fixup
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent f64ce5e commit 533ce0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/structured_clone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function structuredClone(value, options) {
3131
}
3232
const key = 'transfer';
3333
const idlOptions = { __proto__: null, [key]: [] };
34-
if (options !== undefined && options !== null && key in options && options[key] !== undefined) {
34+
if (options != null && key in options && options[key] !== undefined) {
3535
idlOptions[key] = webidl.converters['sequence<object>'](options[key], {
3636
__proto__: null,
3737
context: 'Transfer',

0 commit comments

Comments
 (0)