diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/saved-stacks/native-calls.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/saved-stacks/native-calls.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,12 @@ +// Test that we can save stacks with native code on the stack. + +// Unlike Array.prototype.map, Array.prototype.filter is not self-hosted. +const filter = (function iife() { + try { + [3].filter(n => { throw saveStack() }); + } catch (s) { + return s; + } +}()); + +assertEq(filter.parent.functionDisplayName, "iife");