mirror of https://gitee.com/bigwinds/arangodb
lint
This commit is contained in:
parent
5d31e7d2b4
commit
8854752ca0
|
@ -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++) {
|
||||||
|
|
Loading…
Reference in New Issue