Index: test/mjsunit/eval-stack-trace.js |
diff --git a/test/mjsunit/eval-stack-trace.js b/test/mjsunit/eval-stack-trace.js |
index d83b84c16f283cf6710be54960be13848d957e71..723d522c788616696ea1221addcccd35c187df4b 100644 |
--- a/test/mjsunit/eval-stack-trace.js |
+++ b/test/mjsunit/eval-stack-trace.js |
@@ -26,13 +26,12 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// Return the stack frames of an Error object. |
- |
-Error.prepareStackTrace = function(error, frames) { |
- return frames; |
-} |
- |
Error.prototype.getFrames = function() { |
+ Error.prepareStackTrace = function(error, frames) { |
+ return frames; |
+ } |
var frames = this.stack; |
+ Error.prepareStackTrace = undefined; |
return frames; |
} |