Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 5488c1d98ba21a182ebe01b8d6d0e2f17b49bb61..90898207511f9fb64f2c9b9b78f35e30b27bede0 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1362,6 +1362,14 @@ void Genesis::InitializeExperimentalGlobal() { |
Handle<JSFunction> uint8c_fun = InstallTypedArray("Uint8ClampedArray", |
EXTERNAL_PIXEL_ELEMENTS); |
native_context()->set_uint8c_array_fun(*uint8c_fun); |
+ |
+ Handle<JSFunction> data_view_fun = |
+ InstallFunction( |
+ global, "DataView", JS_DATA_VIEW_TYPE, |
+ JSDataView::kSize, |
+ isolate()->initial_object_prototype(), |
+ Builtins::kIllegal, true, true); |
+ native_context()->set_data_view_fun(*data_view_fun); |
} |
if (FLAG_harmony_generators) { |