From d603b74df56b8ead268c351195b9852780cb229a Mon Sep 17 00:00:00 2001 From: ambar Date: Thu, 10 Mar 2016 17:27:48 +0800 Subject: [PATCH] Fix readProto params --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 86e2de1..d09565b 100644 --- a/index.js +++ b/index.js @@ -36,7 +36,7 @@ module.exports = function (source) { return; } loaded[fileName] = true; - data.imports[index] = readProto(fs.readFileSync(fileName).toString('utf8')); + data.imports[index] = readProto(fs.readFileSync(fileName).toString('utf8'), options, loaded); return; } throw Error('File not found: ' + imp);