11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_cirequire('../common'); 41cb0ef41Sopenharmony_ciconst assert = require('assert'); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ci// Nul bytes should throw, not abort. 71cb0ef41Sopenharmony_ci/* eslint-disable no-control-regex */ 81cb0ef41Sopenharmony_ciassert.throws(() => require('\u0000ab'), /Cannot find module '\u0000ab'/); 91cb0ef41Sopenharmony_ciassert.throws(() => require('a\u0000b'), /Cannot find module 'a\u0000b'/); 101cb0ef41Sopenharmony_ciassert.throws(() => require('ab\u0000'), /Cannot find module 'ab\u0000'/); 111cb0ef41Sopenharmony_ci/* eslint-enable no-control-regex */ 12