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

Unified Diff: src/bootstrapper.cc

Issue 993073002: [es6] Function length property should be configurable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix status file again Created 5 years, 9 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/accessors.cc ('k') | test/mjsunit/es6/function-length-configurable.js » ('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 4a28639197f71cf5ee639105aa5983239d153f20..468be3132fb5800cebea67483482af0a756b24de 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -388,10 +388,10 @@ void Genesis::SetFunctionInstanceDescriptor(
static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY);
Handle<AccessorInfo> length =
- Accessors::FunctionLengthInfo(isolate(), ro_attribs);
+ Accessors::FunctionLengthInfo(isolate(), roc_attribs);
{ // Add length.
AccessorConstantDescriptor d(Handle<Name>(Name::cast(length->name())),
- length, ro_attribs);
+ length, roc_attribs);
map->AppendDescriptor(&d);
}
Handle<AccessorInfo> name =
@@ -555,9 +555,9 @@ void Genesis::SetStrictFunctionInstanceDescriptor(
function_mode == FUNCTION_WITH_READONLY_PROTOTYPE ||
function_mode == FUNCTION_WITHOUT_PROTOTYPE);
Handle<AccessorInfo> length =
- Accessors::FunctionLengthInfo(isolate(), ro_attribs);
+ Accessors::FunctionLengthInfo(isolate(), roc_attribs);
AccessorConstantDescriptor d(Handle<Name>(Name::cast(length->name())),
- length, ro_attribs);
+ length, roc_attribs);
map->AppendDescriptor(&d);
}
Handle<AccessorInfo> name =
« no previous file with comments | « src/accessors.cc ('k') | test/mjsunit/es6/function-length-configurable.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698