1
0
Fork 0
This commit is contained in:
Wilfried Goesgens 2019-10-24 17:03:09 +02:00
parent 5d31e7d2b4
commit 8854752ca0
1 changed files with 2 additions and 6 deletions

View File

@ -10,6 +10,7 @@
*/ */
/*jshint ignore:start */ /*jshint ignore:start */
/*eslint-disable */ /*eslint-disable */
/* global BYTELENGTH */
global.DEFINE_MODULE('buffer', (function () { global.DEFINE_MODULE('buffer', (function () {
'use strict' 'use strict'
/*eslint-enable */ /*eslint-enable */
@ -17,12 +18,7 @@ global.DEFINE_MODULE('buffer', (function () {
const exports = {}; const exports = {};
var SlowBuffer = require('internal').SlowBuffer; var SlowBuffer = require('internal').SlowBuffer;
/*
if (global.BYTELENGTH) {
SlowBuffer.prototype.byteLength = global.BYTELENGTH;
delete global.BYTELENGTH;
}
*/
SlowBuffer.prototype._PRINT = function(context) { SlowBuffer.prototype._PRINT = function(context) {
context.output += '<SlowBuffer'; context.output += '<SlowBuffer';
for (let i = 0; i < Math.min(this.length, 50); i++) { for (let i = 0; i < Math.min(this.length, 50); i++) {