[Pkg-javascript-commits] [uglifyjs] 59/77: tools/props.html: use try/catch in a few more places
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:33 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 7c8c9b94bc5b24a587da8f2c4bac17117fe07490
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date: Tue Mar 17 14:31:22 2015 +0200
tools/props.html: use try/catch in a few more places
---
tools/props.html | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/tools/props.html b/tools/props.html
index 23d1f7d..ff09a8d 100644
--- a/tools/props.html
+++ b/tools/props.html
@@ -7,7 +7,9 @@
function addObject(obj) {
if (obj == null) return;
- Object.getOwnPropertyNames(obj).forEach(add);
+ try {
+ Object.getOwnPropertyNames(obj).forEach(add);
+ } catch(ex) {}
if (obj.prototype) {
Object.getOwnPropertyNames(obj.prototype).forEach(add);
}
@@ -26,13 +28,15 @@
addObject(window[thing]);
});
- addObject(new Event("click"));
- addObject(new Event("contextmenu"));
- addObject(new Event("mouseup"));
- addObject(new Event("mousedown"));
- addObject(new Event("keydown"));
- addObject(new Event("keypress"));
- addObject(new Event("keyup"));
+ try {
+ addObject(new Event("click"));
+ addObject(new Event("contextmenu"));
+ addObject(new Event("mouseup"));
+ addObject(new Event("mousedown"));
+ addObject(new Event("keydown"));
+ addObject(new Event("keypress"));
+ addObject(new Event("keyup"));
+ } catch(ex) {}
var ta = document.createElement("textarea");
ta.style.width = "100%";
--
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