Index: src/builtins/builtins-dataview.cc |
diff --git a/src/builtins/builtins-dataview.cc b/src/builtins/builtins-dataview.cc |
index 131749ccaacf860db365f4a6928071da0e39d629..df7058d377441ca3ca56202ecae7d094a8c26955 100644 |
--- a/src/builtins/builtins-dataview.cc |
+++ b/src/builtins/builtins-dataview.cc |
@@ -90,8 +90,8 @@ BUILTIN(DataViewConstructor_ConstructStub) { |
Handle<JSObject> result; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
JSObject::New(target, new_target)); |
- for (int i = 0; i < ArrayBufferView::kInternalFieldCount; ++i) { |
- Handle<JSDataView>::cast(result)->SetInternalField(i, Smi::kZero); |
+ for (int i = 0; i < ArrayBufferView::kEmbedderFieldCount; ++i) { |
+ Handle<JSDataView>::cast(result)->SetEmbedderField(i, Smi::kZero); |
} |
// 12. Set O's [[ViewedArrayBuffer]] internal slot to buffer. |