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

Unified Diff: src/bootstrapper.cc

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/api.cc ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index b6e8dc5bc8faa3bf21d1f80fb5e920a29ec0f31f..b00802fea79786fff9386fe1bcf93a3d756305a4 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1704,6 +1704,14 @@ bool Genesis::InstallNatives() {
CHECK_NOT_EMPTY_HANDLE(isolate(),
JSObject::SetLocalPropertyIgnoreAttributes(
builtins, builtins_string, builtins, attributes));
+ Handle<String> error_type_symbol =
+ factory()->InternalizeOneByteString(
+ STATIC_ASCII_VECTOR("error_type_symbol"));
+ CHECK_NOT_EMPTY_HANDLE(
+ isolate(),
+ JSObject::SetLocalPropertyIgnoreAttributes(
+ builtins, error_type_symbol, handle(isolate()->heap()->error_type()),
+ attributes));
// Set up the reference from the global object to the builtins object.
JSGlobalObject::cast(native_context()->global_object())->
« no previous file with comments | « src/api.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698