summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Object-defineProperty-surfaces-01.js
blob: 8cf9d85200fdcbfdffe60a9f52f72224ae50bf11 (plain)
1
2
3
4
5
6
7
8
// Debugger.Object.prototype.defineProperty with too few arguments throws.

load(libdir + "asserts.js");

var g = newGlobal({newCompartment: true});
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
assertThrowsInstanceOf(function () { gw.defineProperty("x"); }, TypeError);