[Pkg-javascript-commits] [uglifyjs] 68/77: Export readDefaultReservedFile
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.18
in repository uglifyjs.
commit e1c3861832014448d1d54163c62144786ea91900
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date: Sun Mar 22 11:04:28 2015 +0200
Export readDefaultReservedFile
---
bin/uglifyjs | 2 +-
tools/node.js | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/bin/uglifyjs b/bin/uglifyjs
index 2980a67..6375666 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -159,7 +159,7 @@ if (ARGS.reserved_file) ARGS.reserved_file.forEach(function(filename){
});
if (ARGS.reserve_domprops) {
- RESERVED = UglifyJS.readReservedFile(path.join(__dirname, "..", "tools", "domprops.json"), RESERVED);
+ RESERVED = UglifyJS.readDefaultReservedFile(RESERVED);
}
if (ARGS.d) {
diff --git a/tools/node.js b/tools/node.js
index 048630d..054a05c 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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list