Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 884f28e7ee5d355134c51fc5a7af9755a60df56a..56acc86aa780702c8da66ed7ca6c82cbffb6b998 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -522,7 +522,7 @@ Handle<DescriptorArray> Genesis::ComputeStrictFunctionInstanceDescriptor( |
? 4 |
: 5); |
PropertyAttributes attributes = static_cast<PropertyAttributes>( |
- DONT_ENUM | DONT_DELETE | READ_ONLY); |
+ DONT_ENUM | DONT_DELETE); |
{ // length |
Handle<Foreign> foreign = factory()->NewForeign(&Accessors::FunctionLength); |
@@ -547,8 +547,8 @@ Handle<DescriptorArray> Genesis::ComputeStrictFunctionInstanceDescriptor( |
// prototype |
if (prototypeMode != DONT_ADD_PROTOTYPE) { |
- if (prototypeMode == ADD_WRITEABLE_PROTOTYPE) { |
- attributes = static_cast<PropertyAttributes>(attributes & ~READ_ONLY); |
+ if (prototypeMode != ADD_WRITEABLE_PROTOTYPE) { |
+ attributes = static_cast<PropertyAttributes>(attributes | READ_ONLY); |
} |
Handle<Foreign> foreign = |
factory()->NewForeign(&Accessors::FunctionPrototype); |