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