2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
6 var BUGNUMBER = 549617;
7 var summary = 'flat closure debugged via trap while still active';
13 return function () { return x; };
16 var f = a("abc", 123);
17 if (this.trap && this.setDebug) {
19 trap(f, "try {actual = x} catch (e) {actual = e}");
23 reportCompare(expect, actual, summary);
25 printStatus("All tests passed!");