Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Lucas <evanlucas@me.com>2016-01-26 21:58:46 +0300
committerRebecca Turner <me@re-becca.org>2016-01-29 01:58:46 +0300
commit5dec02a3d0e82202c021e27aff9d006283fdc25a (patch)
tree4b40282c250defee91965001e0c5b472f4e49e35 /test/fixtures
parent2609a2950704f577ac888668e81ba514568fab44 (diff)
npm: don't bail if require() onload-script throws
instead, log the error using the warn log level and also log a notice that the require failed. Fixes: #10347 PR-URL: https://github.com/npm/npm/pull/11289 Credit: @evanlucas Reviewed-By: @iarna
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/onload.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixtures/onload.js b/test/fixtures/onload.js
new file mode 100644
index 000000000..90c1a3aa5
--- /dev/null
+++ b/test/fixtures/onload.js
@@ -0,0 +1 @@
+console.error('called onload')