mirror of https://github.com/lukechilds/node.git
Julian Duque
10 years ago
2 changed files with 14 additions and 1 deletions
@ -0,0 +1,11 @@ |
|||||
|
const common = require('../common'); |
||||
|
const fs = require('fs'); |
||||
|
const assert = require('assert'); |
||||
|
|
||||
|
assert.throws(function() { |
||||
|
fs.write(null, new Buffer(1), 0, 1); |
||||
|
}, /TypeError/); |
||||
|
|
||||
|
assert.throws(function() { |
||||
|
fs.write(null, '1', 0, 1); |
||||
|
}, /TypeError/); |
Loading…
Reference in new issue