mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 06:06:52 +08:00
fix(dom): fix animation check crash
This commit is contained in:
committed by
churchill-zhang
parent
a6e2e2fc6d
commit
87a0fd8554
@@ -203,8 +203,11 @@ std::shared_ptr<ParseAnimationResult> ParseAnimation(const std::shared_ptr<Ctx>&
|
||||
context->ThrowException("animation start_value error");
|
||||
return nullptr;
|
||||
}
|
||||
animation_id = footstone::check::checked_numeric_cast<int32_t, uint32_t>(id);
|
||||
// todo 避免 release checked_numeric_cast crash
|
||||
flag = footstone::check::numeric_cast(id, animation_id);
|
||||
if (!flag) {
|
||||
context->ThrowException("animation id error");
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
double to_value;
|
||||
|
||||
Reference in New Issue
Block a user