Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 694a51f69c9915ceae543b6af3fa5b6e82cc1a51..938a2b37d01027b19f3fac650e09cc1925a5223c 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -694,7 +694,7 @@ static i::Handle<i::FixedArray> EmbedderDataFor(Context* context, |
return i::Handle<i::FixedArray>(); |
} |
int new_size = i::Max(index, data->length() << 1) + 1; |
- data = env->GetIsolate()->factory()->CopySizeFixedArray(data, new_size); |
+ data = i::FixedArray::CopySize(data, new_size); |
env->set_embedder_data(*data); |
return data; |
} |