mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 04:24:11 +01:00
Bang on tests a bit more.
This commit is contained in:
@@ -11,8 +11,9 @@ var jumlib = module("resource://mozmill/modules/jum.js");
|
||||
function toJSON(val) {
|
||||
if (typeof val == "function")
|
||||
return val.toSource();
|
||||
else
|
||||
return val;
|
||||
if (val instanceof Ci.nsIDOMNode || val instanceof Ci.nsIDOMWindow)
|
||||
return { DOMNode: String(val) };
|
||||
return val;
|
||||
}
|
||||
|
||||
function test(val, params) {
|
||||
|
||||
Reference in New Issue
Block a user