git-off

git off handles large files in git repos
git clone https://noulin.net/git/git-off.git
Log | Files | Refs | README

test-buffer-bad-overload.js (282B)


      1 'use strict';
      2 var Buffer = require('../../').Buffer;
      3 
      4 
      5 var assert = require('assert');
      6 
      7 assert.doesNotThrow(function() {
      8   Buffer.allocUnsafe(10);
      9 });
     10 
     11 assert.throws(function() {
     12   Buffer.from(10, 'hex');
     13 });
     14 
     15 assert.doesNotThrow(function() {
     16   Buffer.from('deadbeaf', 'hex');
     17 });
     18