michael@0: const Cu = Components.utils; michael@0: michael@0: function run_test() { michael@0: // Make sure Components.utils gets its |this| fixed up. michael@0: var isXrayWrapper = Components.utils.isXrayWrapper; michael@0: do_check_true(!isXrayWrapper({}), "Didn't throw"); michael@0: michael@0: // Even for classes without |this| fixup, make sure that we don't crash. michael@0: var isSuccessCode = Components.isSuccessCode; michael@0: try { isSuccessCode(Components.results.NS_OK); } catch (e) {}; michael@0: }