Skip to content

Commit 4a71c68

Browse files
committed
feat(api): remove unused JSEAPI
1 parent 53c2320 commit 4a71c68

File tree

2 files changed

+4
-85
lines changed

2 files changed

+4
-85
lines changed

src/api/jse/JSEAPI.cc

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/v8_utils/V8Object.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class V8Object {
3434
}
3535

3636
auto obj = value_.As<v8::Object>();
37-
auto result = obj->Get(context_, ConvertToV8(isolate_, context_, key));
37+
auto result = obj->Get(context_, ConvertToV8(context_, key));
3838
if (result.IsEmpty()) {
3939
throw v8_exception(
4040
isolate_,
@@ -78,8 +78,7 @@ class V8Object {
7878
}
7979

8080
auto obj = value_.As<v8::Object>();
81-
return !obj->Set(context_, ConvertToV8(isolate_, context_, key), ConvertToV8(isolate_, context_, value))
82-
.IsNothing();
81+
return !obj->Set(context_, ConvertToV8(context_, key), ConvertToV8(context_, value)).IsNothing();
8382
}
8483

8584
template <typename T>
@@ -93,7 +92,7 @@ class V8Object {
9392
}
9493

9594
auto obj = value_.As<v8::Object>();
96-
auto result = obj->Get(context_, ConvertToV8(isolate_, context_, key));
95+
auto result = obj->Get(context_, ConvertToV8(context_, key));
9796
if (result.IsEmpty()) {
9897
throw v8_exception(
9998
isolate_,
@@ -134,7 +133,7 @@ class V8Object {
134133
}
135134

136135
auto obj = value_.As<v8::Object>();
137-
auto value = obj->Get(context_, ConvertToV8(isolate_, context_, key));
136+
auto value = obj->Get(context_, ConvertToV8(context_, key));
138137
return !value.IsEmpty() && !value.ToLocalChecked()->IsUndefined();
139138
}
140139

0 commit comments

Comments
 (0)