Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 8634a2bbd16320799487ebf9890f24bf2496cd60..f468bdca926ff78361f1565792abf227594ba66b 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6313,23 +6313,6 @@ Local<Array> Map::AsArray() const { |
} |
-MaybeLocal<Map> Map::FromArray(Local<Context> context, Local<Array> array) { |
- PREPARE_FOR_EXECUTION(context, "Map::FromArray", Map); |
- if (array->Length() % 2 != 0) { |
- return MaybeLocal<Map>(); |
- } |
- i::Handle<i::Object> result; |
- i::Handle<i::Object> argv[] = {Utils::OpenHandle(*array)}; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->map_from_array(), |
- isolate->factory()->undefined_value(), |
- arraysize(argv), argv) |
- .ToHandle(&result); |
- RETURN_ON_FAILED_EXECUTION(Map); |
- RETURN_ESCAPED(Local<Map>::Cast(Utils::ToLocal(result))); |
-} |
- |
- |
Local<v8::Set> v8::Set::New(Isolate* isolate) { |
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
LOG_API(i_isolate, "Set::New"); |
@@ -6414,20 +6397,6 @@ Local<Array> Set::AsArray() const { |
} |
-MaybeLocal<Set> Set::FromArray(Local<Context> context, Local<Array> array) { |
- PREPARE_FOR_EXECUTION(context, "Set::FromArray", Set); |
- i::Handle<i::Object> result; |
- i::Handle<i::Object> argv[] = {Utils::OpenHandle(*array)}; |
- has_pending_exception = |
- !i::Execution::Call(isolate, isolate->set_from_array(), |
- isolate->factory()->undefined_value(), |
- arraysize(argv), argv) |
- .ToHandle(&result); |
- RETURN_ON_FAILED_EXECUTION(Set); |
- RETURN_ESCAPED(Local<Set>::Cast(Utils::ToLocal(result))); |
-} |
- |
- |
bool Value::IsPromise() const { |
auto self = Utils::OpenHandle(this); |
return i::Object::IsPromise(self); |