11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_cirequire('../common'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ci// This test ensures that the repl does not 51cb0ef41Sopenharmony_ci// crash or emit error when throwing `null|undefined` 61cb0ef41Sopenharmony_ci// ie `throw null` or `throw undefined`. 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ciconst r = require('repl').start(); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci// Should not throw. 111cb0ef41Sopenharmony_cir.write('throw null\n'); 121cb0ef41Sopenharmony_cir.write('throw undefined\n'); 131cb0ef41Sopenharmony_cir.write('.exit\n'); 14