✏️ Edit: test-buffer-bad-overload.js
Path:
/home/thiqat5/sb.thiqatech.com/node_modules/buffer/test/node/test-buffer-bad-overload.js
Size: 282 B · Modified: 1985-10-26 12:15:00 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
'use strict'; var Buffer = require('../../').Buffer; var assert = require('assert'); assert.doesNotThrow(function() { Buffer.allocUnsafe(10); }); assert.throws(function() { Buffer.from(10, 'hex'); }); assert.doesNotThrow(function() { Buffer.from('deadbeaf', 'hex'); });
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF