Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // If !frame.live, frame.environment throws.
3 load(libdir + "asserts.js");
5 var g = newGlobal();
6 var dbg = Debugger(g);
7 var frame;
8 g.h = function () { frame = dbg.getNewestFrame(); };
9 g.eval("h();");
10 assertEq(frame.live, false);
11 assertThrowsInstanceOf(function () { frame.environment; }, Error);