1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-12 05:45:52 +01:00

Don't block the entire Firefox process during io.system.

--HG--
extra : rebase_source : 7e3889e5bf19cdd1726fdd5c3dcdb98f4f0374f5
This commit is contained in:
Kris Maglione
2010-11-04 08:31:07 -04:00
parent e66c15ebbd
commit 6932c87d48
4 changed files with 21 additions and 9 deletions

View File

@@ -38,7 +38,10 @@ if (!Object.defineProperty)
if ("value" in desc)
if (desc.writable && !objproto.__lookupGetter__.call(obj, prop)
&& !objproto.__lookupSetter__.call(obj, prop))
obj[prop] = value;
try {
obj[prop] = value;
}
catch (e if e instanceof TypeError) {}
else {
objproto.__defineGetter__.call(obj, prop, function () value);
if (desc.writable)