summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Object-isSameNative-01.js
blob: 9359062cd6426dd44b2855120e1a0168bff89427 (plain)
1
2
3
4
5
6
7
8
9
// Test that isSameNative will accept a CCW as an argument.

var g = newGlobal({ newCompartment: true });
var dbg = Debugger();
var gdbg = dbg.addDebuggee(g);

var g2 = newGlobal({ newCompartment: true });

assertEq(gdbg.getProperty("print").return.isSameNative(g2.print), true);