summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1688622-createSource.js
blob: 917d543555e2eadf8b451719f21efa886fa32a65 (plain)
1
2
3
4
5
6
7
8
// Test calling createSource on a non-debuggee global.
for (const global of Debugger().findAllGlobals()) {
    try {
        global.createSource(13);
    } catch (e) {
        assertEq(e.message, "Debugger.Object is not a debuggee global");
    }
}