Files
pezkuwi-common/packages/x-textdecoder/typeCheck.js
T

5 lines
247 B
JavaScript

import { TextDecoder as BrowserTD } from './browser.js';
import { TextDecoder as NodeTD } from './node.js';
console.log(new BrowserTD('utf-8').decode(new Uint8Array([1, 2, 3])));
console.log(new NodeTD('utf-8').decode(new Uint8Array([1, 2, 3])));