swc/bundler/tests/.cache/untrusted/6a459f0b30a6943a15444af495d8d98afe2a8425.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

34 lines
869 B
TypeScript

// Loaded from https://dev.jspm.io/npm:jszip@3.5.0/lib/reader/NodeBufferReader.dew.js
import { dew as _Uint8ArrayReaderDewDew } from "./Uint8ArrayReader.dew.js";
import { dew as _utilsDewDew } from "../utils.dew.js";
var exports = {},
_dewExec = false;
export function dew() {
if (_dewExec) return exports;
_dewExec = true;
var Uint8ArrayReader = _Uint8ArrayReaderDewDew();
var utils = _utilsDewDew();
function NodeBufferReader(data) {
Uint8ArrayReader.call(this, data);
}
utils.inherits(NodeBufferReader, Uint8ArrayReader);
/**
* @see DataReader.readData
*/
NodeBufferReader.prototype.readData = function (size) {
this.checkOffset(size);
var result = this.data.slice(this.zero + this.index, this.zero + this.index + size);
this.index += size;
return result;
};
exports = NodeBufferReader;
return exports;
}