From d400bed3e8e0249d58be076b4596f5dfb56ef60a Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Mon, 7 Jul 2014 12:31:25 +0000 Subject: [PATCH] Remove SetOwnPropertyIgnoreAttribute uses from the bootstrapper 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 | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc index 6051447..bbe3201 100644 --- a/src/bootstrapper.cc +++ b/src/bootstrapper.cc @@ -2174,15 +2174,10 @@ bool Genesis::InstallSpecialObjects(Handle 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) { -- 2.7.4