From 71fc4d9486ed13276e0f27ab755e6e233d91c714 Mon Sep 17 00:00:00 2001 From: Maurice Butler Date: Mon, 7 Jul 2014 16:29:59 +1000 Subject: [PATCH] doc: added X.json to the LOAD_AS_FILE sudo code Signed-off-by: Fedor Indutny --- doc/api/modules.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown index a9c5034..7632d30 100644 --- a/doc/api/modules.markdown +++ b/doc/api/modules.markdown @@ -385,7 +385,8 @@ in pseudocode of what require.resolve does: LOAD_AS_FILE(X) 1. If X is a file, load X as JavaScript text. STOP 2. If X.js is a file, load X.js as JavaScript text. STOP - 3. If X.node is a file, load X.node as binary addon. STOP + 3. If X.json is a file, parse X.json to a JavaScript Object. STOP + 4. If X.node is a file, load X.node as binary addon. STOP LOAD_AS_DIRECTORY(X) 1. If X/package.json is a file, -- 2.7.4