| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 4f7cf409404e9e909aaa0bde8d36fd3b139acccf..b0804c3e7496856b9d56c876857c80c5f8098b65 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -350,7 +350,14 @@ static Handle<JSFunction> InstallFunction(Handle<JSObject> target,
|
| prototype,
|
| call_code,
|
| is_ecma_native);
|
| - SetLocalPropertyNoThrow(target, symbol, function, DONT_ENUM);
|
| + PropertyAttributes attributes;
|
| + if (target->IsJSBuiltinsObject()) {
|
| + attributes =
|
| + static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY);
|
| + } else {
|
| + attributes = DONT_ENUM;
|
| + }
|
| + SetLocalPropertyNoThrow(target, symbol, function, attributes);
|
| if (is_ecma_native) {
|
| function->shared()->set_instance_class_name(*symbol);
|
| }
|
| @@ -1677,7 +1684,6 @@ bool Genesis::InstallNatives() {
|
| global_context()->set_regexp_result_map(*initial_map);
|
| }
|
|
|
| -
|
| #ifdef DEBUG
|
| builtins->Verify();
|
| #endif
|
|
|