|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
453 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var $ = require('../internals/export');
|
|---|
| 3 | var globalThis = require('../internals/global-this');
|
|---|
| 4 | var aString = require('../internals/a-string');
|
|---|
| 5 | var $fromHex = require('../internals/uint8-from-hex');
|
|---|
| 6 |
|
|---|
| 7 | // `Uint8Array.fromHex` method
|
|---|
| 8 | // https://tc39.es/ecma262/#sec-uint8array.fromhex
|
|---|
| 9 | if (globalThis.Uint8Array) $({ target: 'Uint8Array', stat: true }, {
|
|---|
| 10 | fromHex: function fromHex(string) {
|
|---|
| 11 | return $fromHex(aString(string)).bytes;
|
|---|
| 12 | }
|
|---|
| 13 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.