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

Unified Diff: src/messages.js

Issue 234703006: Prevent real stack overflow when handling JavaScript stack overflow (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 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 | « no previous file | test/mjsunit/stack-traces-overflow.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index ff108d6c879dde246ee918c87d28e89a467563c4..72d8823fefb2e10f169f87a7344b85ff95767ba8 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -1245,6 +1245,9 @@ SetUpError();
$Error.captureStackTrace = captureStackTrace;
+// Make sure there are no setters/getters on stackTraceLimit
+%SetProperty($Error, 'stackTraceLimit', UNDEFINED, DONT_DELETE);
+
%SetProperty($Error.prototype, 'message', '', DONT_ENUM);
// Global list of error objects visited during ErrorToString. This is
« no previous file with comments | « no previous file | test/mjsunit/stack-traces-overflow.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698