michael@0: // Test that we can save stacks with native code on the stack. michael@0: michael@0: // Unlike Array.prototype.map, Array.prototype.filter is not self-hosted. michael@0: const filter = (function iife() { michael@0: try { michael@0: [3].filter(n => { throw saveStack() }); michael@0: } catch (s) { michael@0: return s; michael@0: } michael@0: }()); michael@0: michael@0: assertEq(filter.parent.functionDisplayName, "iife");