module: correct the order of the assertions
authorhaoxin <coderhaoxin@outlook.com>
Tue, 9 Sep 2014 02:22:37 +0000 (10:22 +0800)
committerChris Dickinson <christopher.s.dickinson@gmail.com>
Fri, 14 Nov 2014 03:58:52 +0000 (19:58 -0800)
commit00d7b13a18dcf39cb7e7ace87c5c7b43d8024f41
tree8589e85f61592adc74cc64deae87073e6dcc77c2
parent855b1c98caf60a1b19d6d6bb9c9cb160d338f7f0
module: correct the order of the assertions

this puts the type-checking assertions in require
into proper order.

PR-URL: https://github.com/joyent/node/pull/8333
Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-by: Fedor Indutny <fedor@indutny.com>
lib/module.js
test/simple/test-module-loading-error.js