Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Unified Diff: test/mjsunit/stack-traces-overflow.js

Issue 360033002: Revert "Fix stack trace accessor behavior." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/stack-traces.js ('k') | tools/generate-runtime-tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/stack-traces-overflow.js
diff --git a/test/mjsunit/stack-traces-overflow.js b/test/mjsunit/stack-traces-overflow.js
index fab49d34c8de9844b288530e29020b3d966211a4..1c676802101c57d0f0c4d3a165bd90c1746d55bd 100644
--- a/test/mjsunit/stack-traces-overflow.js
+++ b/test/mjsunit/stack-traces-overflow.js
@@ -61,8 +61,8 @@ try {
function testErrorPrototype(prototype) {
var object = {};
object.__proto__ = prototype;
- object.stack = "123"; // Overwriting stack property fails.
- assertEquals(prototype.stack, object.stack);
+ object.stack = "123";
+ assertEquals("123", object.stack);
assertTrue("123" != prototype.stack);
}
@@ -126,8 +126,6 @@ try {
rec1(0);
} catch (e) {
assertEquals(undefined, e.stack);
- e.stack = "abc";
- assertEquals("abc", e.stack);
}
Error.stackTraceLimit = 3;
« no previous file with comments | « test/mjsunit/stack-traces.js ('k') | tools/generate-runtime-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698