✏️ Edit: test-buffer-bad-overload.js
Path:
/home/thiqat5/mv2.thiqatech.com/node_modules/buffer/test/node/test-buffer-bad-overload.js
Size: 282 B · Modified: 2022-09-25 05:25:54 · Perm: 0755 · 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