◐ Shell
clean mode source ↗

lib: improve argument handling in Blob constructor · nodejs/node@8a24c17

Original file line numberDiff line numberDiff line change

@@ -149,8 +149,8 @@ class Blob {

149149

}

150150

validateDictionary(options, 'options');

151151

let {

152-

type = '',

153152

endings = 'transparent',

153+

type = '',

154154

} = options ?? kEmptyObject;

155155
156156

endings = `${endings}`;

Original file line numberDiff line numberDiff line change

@@ -10,7 +10,6 @@

1010

"blobParts not an object: BigInt with BigInt.prototype[Symbol.iterator]",

1111

"blobParts not an object: Symbol with Symbol.prototype[Symbol.iterator]",

1212

"Getters and value conversions should happen in order until an exception is thrown.",

13-

"options properties should be accessed in lexicographic order.",

1413

"Arguments should be evaluated from left to right."

1514

],

1615

"flaky": [