1'use strict';
2const common = require('../common');
3const fs = require('fs');
4const assert = require('assert');
5
6assert.throws(function() {
7  fs.write(null, Buffer.allocUnsafe(1), 0, 1, common.mustNotCall());
8}, /TypeError/);
9
10assert.throws(function() {
11  fs.write(null, '1', 0, 1, common.mustNotCall());
12}, /TypeError/);
13