Remove SetOwnPropertyIgnoreAttribute uses from the bootstrapper
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 7 Jul 2014 12:31:25 +0000 (12:31 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 7 Jul 2014 12:31:25 +0000 (12:31 +0000)
BUG=
R=ishell@chromium.org

Review URL: https://codereview.chromium.org/367763003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22241 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/bootstrapper.cc

index 6051447..bbe3201 100644 (file)
@@ -2174,15 +2174,10 @@ bool Genesis::InstallSpecialObjects(Handle<Context> native_context) {
   }
 
   // Expose the stack trace symbol to native JS.
-  RETURN_ON_EXCEPTION_VALUE(
-      isolate,
-      JSObject::SetOwnPropertyIgnoreAttributes(
-          handle(native_context->builtins(), isolate),
-          factory->InternalizeOneByteString(
-              STATIC_ASCII_VECTOR("stack_trace_symbol")),
-          factory->stack_trace_symbol(),
-          NONE),
-      false);
+  JSObject::AddProperty(handle(global->builtins()),
+                        factory->InternalizeOneByteString(
+                            STATIC_ASCII_VECTOR("stack_trace_symbol")),
+                        factory->stack_trace_symbol(), NONE);
 
   // Expose the debug global object in global if a name for it is specified.
   if (FLAG_expose_debug_as != NULL && strlen(FLAG_expose_debug_as) != 0) {