michael@0: function foo(aObject) michael@0: { michael@0: try { } michael@0: catch (ex if (ex.name == "TypeError")) { } michael@0: try { Object.getPrototypeOf(aObject); } michael@0: catch (ex) { } michael@0: } michael@0: michael@0: foo(true);