1'use strict'; 2 3require('../common'); 4const assert = require('assert'); 5 6// Nul bytes should throw, not abort. 7/* eslint-disable no-control-regex */ 8assert.throws(() => require('\u0000ab'), /Cannot find module '\u0000ab'/); 9assert.throws(() => require('a\u0000b'), /Cannot find module 'a\u0000b'/); 10assert.throws(() => require('ab\u0000'), /Cannot find module 'ab\u0000'/); 11/* eslint-enable no-control-regex */ 12