main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
694 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var globalThis = require('../internals/global-this');
|
---|
4 | var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');
|
---|
5 | var $fromBase64 = require('../internals/uint8-from-base64');
|
---|
6 |
|
---|
7 | var Uint8Array = globalThis.Uint8Array;
|
---|
8 |
|
---|
9 | // `Uint8Array.fromBase64` method
|
---|
10 | // https://github.com/tc39/proposal-arraybuffer-base64
|
---|
11 | if (Uint8Array) $({ target: 'Uint8Array', stat: true }, {
|
---|
12 | fromBase64: function fromBase64(string /* , options */) {
|
---|
13 | var result = $fromBase64(string, arguments.length > 1 ? arguments[1] : undefined, null, 0x1FFFFFFFFFFFFF);
|
---|
14 | return arrayFromConstructorAndList(Uint8Array, result.bytes);
|
---|
15 | }
|
---|
16 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.