You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
440 B
17 lines
440 B
|
2 months ago
|
// Buffer.byteLength polyfill in the Edge runtime, with only utf8 strings
|
||
|
|
// supported at the moment.
|
||
|
|
"use strict";
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: true
|
||
|
|
});
|
||
|
|
Object.defineProperty(exports, "byteLength", {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return byteLength;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
function byteLength(payload) {
|
||
|
|
return new TextEncoder().encode(payload).buffer.byteLength;
|
||
|
|
}
|
||
|
|
|
||
|
|
//# sourceMappingURL=web.js.map
|