Skip to content

Commit 276ce29

Browse files
committed
core, bugfix: compile warning in debug mode.
1 parent 8d9656c commit 276ce29

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fibjs/include/ClassInfo.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ class ClassInfo {
233233

234234
if (!skips || !skips[j])
235235
o->SetAccessor(_context, isolate->NewString(m_cd.cps[i].name),
236-
m_cd.cps[i].getter, m_cd.cps[i].setter);
236+
m_cd.cps[i].getter, m_cd.cps[i].setter)
237+
.ToChecked();
237238
}
238239

239240
for (i = 0; i < m_cd.cc; i++) {

fibjs/include/Trigger.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class JSTrigger {
143143
int32_t len = esa->Length();
144144
for (i = index; i < len - 1; i++)
145145
esa->Set(i, esa->Get(i + 1));
146-
esa->Delete(esa->CreationContext(), len - 1);
146+
esa->Delete(esa->CreationContext(), len - 1).ToChecked();
147147
esa->Set(NewString("length"),
148148
v8::Integer::New(isolate, len - 1));
149149
}

0 commit comments

Comments
 (0)