Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index df06945b9f52f29d65f922ae50729a4775ee962a..70562ef283f8d340278e33050b614646b491ffa6 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1579,16 +1579,16 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
TYPED_ARRAYS(INSTALL_TYPED_ARRAY) |
#undef INSTALL_TYPED_ARRAY |
- Handle<JSFunction> data_view_fun = |
- InstallFunction( |
- global, "DataView", JS_DATA_VIEW_TYPE, |
- JSDataView::kSizeWithInternalFields, |
- isolate->initial_object_prototype(), |
- Builtins::kIllegal); |
+ Handle<JSFunction> data_view_fun = InstallFunction( |
+ global, "DataView", JS_DATA_VIEW_TYPE, |
+ JSDataView::kSizeWithInternalFields, |
+ isolate->initial_object_prototype(), Builtins::kDataViewConstructor); |
InstallWithIntrinsicDefaultProto(isolate, data_view_fun, |
Context::DATA_VIEW_FUN_INDEX); |
data_view_fun->shared()->set_construct_stub( |
- *isolate->builtins()->JSBuiltinsConstructStub()); |
+ *isolate->builtins()->DataViewConstructor_ConstructStub()); |
+ data_view_fun->shared()->set_length(3); |
+ data_view_fun->shared()->DontAdaptArguments(); |
} |
{ // -- M a p |