diff --git a/test/addons/make-callback-recurse/test.js b/test/addons/make-callback-recurse/test.js index 77815e052ab1f9..222a81b06b87eb 100644 --- a/test/addons/make-callback-recurse/test.js +++ b/test/addons/make-callback-recurse/test.js @@ -9,6 +9,7 @@ const makeCallback = binding.makeCallback; // Make sure this is run in the future. const mustCallCheckDomains = common.mustCall(checkDomains); +common.crashOnUnhandledRejection(); // Make sure that using MakeCallback allows the error to propagate. assert.throws(function() { diff --git a/tools/doc/node_modules/js-yaml/index.js b/tools/doc/node_modules/js-yaml/index.js deleted file mode 100644 index 620bc293ffe032..00000000000000 --- a/tools/doc/node_modules/js-yaml/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -// Hack to load the js-yaml module from eslint. -// No other reason than that it’s huge. - -const path = require('path'); - -const realJSYaml = path.resolve( - __dirname, '..', '..', '..', // tools/ - 'eslint', - 'node_modules', - 'js-yaml' -); - -module.exports = require(realJSYaml);