blob: 7cab5b12dcdb4aa3c60ccb5e2b0af3b476137bc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
const Cu = Components.utils;
function run_test() {
// Make sure Components.utils gets its |this| fixed up.
var isXrayWrapper = Components.utils.isXrayWrapper;
do_check_true(!isXrayWrapper({}), "Didn't throw");
// Even for classes without |this| fixup, make sure that we don't crash.
var isSuccessCode = Components.isSuccessCode;
try { isSuccessCode(Components.results.NS_OK); } catch (e) {};
}
|