summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorMaƫl Nison <nison.mael@gmail.com>2019-11-08 18:38:26 +0100
committerGuy Bedford <guybedford@gmail.com>2019-12-04 23:30:25 -0500
commit1549c8e077422b79573936960daaa4c695620310 (patch)
tree5ee2a9e13960d7ee47c9493b58d2c42954c6276e /test/fixtures
parent81ac3023b3ab082804deda96d65530321d8af448 (diff)
downloadandroid-node-v8-1549c8e077422b79573936960daaa4c695620310.tar.gz
android-node-v8-1549c8e077422b79573936960daaa4c695620310.tar.bz2
android-node-v8-1549c8e077422b79573936960daaa4c695620310.zip
module: ignore resolution failures for inspect-brk
The resolution for the main entry point may fail when the resolution requires a preloaded module to be executed first (for example when adding new extensions to the resolution process). Silently skipping such failures allow us to defer the resolution as long as needed without having any adverse change (since the main entry point won't resolve anyway if it really can't be resolved at all). PR-URL: https://github.com/nodejs/node/pull/30336 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/test-resolution-inspect-brk-main.ext0
-rw-r--r--test/fixtures/test-resolution-inspect-brk-resolver.js5
2 files changed, 5 insertions, 0 deletions
diff --git a/test/fixtures/test-resolution-inspect-brk-main.ext b/test/fixtures/test-resolution-inspect-brk-main.ext
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/test/fixtures/test-resolution-inspect-brk-main.ext
diff --git a/test/fixtures/test-resolution-inspect-brk-resolver.js b/test/fixtures/test-resolution-inspect-brk-resolver.js
new file mode 100644
index 0000000000..fdfb5ca5b1
--- /dev/null
+++ b/test/fixtures/test-resolution-inspect-brk-resolver.js
@@ -0,0 +1,5 @@
+'use strict';
+// eslint-disable-next-line no-unused-vars
+const common = require('../common');
+
+require.extensions['.ext'] = require.extensions['.js'];