File tree Expand file tree Collapse file tree 4 files changed +470
-3
lines changed
Uint8Array.prototype.setFromBase64 Expand file tree Collapse file tree 4 files changed +470
-3
lines changed Original file line number Diff line number Diff line change 18
18
"capIsNewExceptions": [
19
19
"FromBase64",
20
20
"FromHex",
21
+ "DetachArrayBuffer",
21
22
"Get",
22
23
"GetIntrinsic",
23
24
"GetOptionsObject",
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ module.exports = function setFromBase64(string) {
29
29
ValidateUint8Array ( into ) ; // step 2
30
30
31
31
if ( typeof string !== 'string' ) {
32
- throw new $TypeError ( '`string` is not a string: ' + string ) ; // step 3
32
+ throw new $TypeError ( '`string` is not a string: ' + typeof string ) ; // step 3
33
33
}
34
34
35
35
var opts = GetOptionsObject ( arguments . length > 1 ? arguments [ 1 ] : void undefined ) ; // step 4
@@ -41,7 +41,7 @@ module.exports = function setFromBase64(string) {
41
41
}
42
42
43
43
if ( typeof alphabet !== 'string' ) {
44
- throw new $TypeError ( '`alphabet` is not a string: ' + alphabet ) ; // step 7
44
+ throw new $TypeError ( '`alphabet` is not a string: ' + typeof alphabet ) ; // step 7
45
45
}
46
46
47
47
if ( alphabet !== 'base64' && alphabet !== 'base64url' ) {
Original file line number Diff line number Diff line change 69
69
"evalmd" : " ^0.0.19" ,
70
70
"for-each" : " ^0.3.3" ,
71
71
"in-publish" : " ^2.0.1" ,
72
+ "is-core-module" : " ^2.13.1" ,
72
73
"npmignore" : " ^0.3.1" ,
73
74
"nyc" : " ^10.3.2" ,
74
75
"object-inspect" : " ^1.13.1" ,
You can’t perform that action at this time.
0 commit comments