michael@0: // Test that we can save stacks which have generator frames. michael@0: michael@0: const { value: frame } = (function iife1() { michael@0: return (function* generator() { michael@0: yield (function iife2() { michael@0: return saveStack(); michael@0: }()); michael@0: }()).next(); michael@0: }()); michael@0: michael@0: assertEq(frame.functionDisplayName, "iife2"); michael@0: assertEq(frame.parent.functionDisplayName, "generator"); michael@0: assertEq(frame.parent.parent.functionDisplayName, "iife1"); michael@0: assertEq(frame.parent.parent.parent.functionDisplayName, null); michael@0: assertEq(frame.parent.parent.parent.parent, null);