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

Unified Diff: src/runtime.js

Issue 176843003: Add StackOverflowError and expose error type to api. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix test Created 6 years, 10 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 | « src/mirror-debugger.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index a49bc8448dfa52022880ef78e4e10eff632b7a12..63004ca3fbd65a0da3af5ca10c4ac4cfcf014571 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -445,7 +445,7 @@ function APPLY_PREPARE(args) {
// big enough, but sanity check the value to avoid overflow when
// multiplying with pointer size.
if (length > 0x800000) {
- throw %MakeRangeError('stack_overflow', []);
+ throw %MakeStackOverflowError();
}
if (!IS_SPEC_FUNCTION(this)) {
@@ -465,7 +465,7 @@ function APPLY_PREPARE(args) {
function APPLY_OVERFLOW(length) {
- throw %MakeRangeError('stack_overflow', []);
+ throw %MakeStackOverflowError();
}
« no previous file with comments | « src/mirror-debugger.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698