aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2015-03-22 11:04:28 +0200
committerMihai Bazon <mihai.bazon@gmail.com>2015-03-22 11:04:28 +0200
commite1c3861832014448d1d54163c62144786ea91900 (patch)
tree96555dcf3d04cf26e5a43a78cf438ba8a440857d /tools
parent81b7335267d06b5c541d25ca17c9b8ed11f3b927 (diff)
downloadtracifyjs-e1c3861832014448d1d54163c62144786ea91900.tar.gz
tracifyjs-e1c3861832014448d1d54163c62144786ea91900.zip
Export readDefaultReservedFile
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js
index 048630de..054a05c0 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -194,7 +194,7 @@ exports.describe_ast = function() {
return out + "";
};
-exports.readReservedFile = function(filename, reserved) {
+function readReservedFile(filename, reserved) {
if (!reserved) {
reserved = { vars: [], props: [] };
}
@@ -211,6 +211,12 @@ exports.readReservedFile = function(filename, reserved) {
});
}
return reserved;
+}
+
+exports.readReservedFile = readReservedFile;
+
+exports.readDefaultReservedFile = function(reserved) {
+ return readReservedFile(path.join(__dirname, "domprops.json"), reserved);
};
exports.readNameCache = function(filename, key) {