mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 08:11:52 +00:00
Use FromJust over ToChecked
This commit is contained in:
parent
096454fdf4
commit
6479923c57
@ -72,7 +72,7 @@ void v8js_create_script_exception(zval *return_value, v8::Isolate *isolate, v8::
|
|||||||
|
|
||||||
v8::Maybe<int> end_col = tc_message->GetEndColumn(isolate->GetEnteredContext());
|
v8::Maybe<int> end_col = tc_message->GetEndColumn(isolate->GetEnteredContext());
|
||||||
if (end_col.IsJust()) {
|
if (end_col.IsJust()) {
|
||||||
PHPV8_EXPROP(_long, JsEndColumn, end_col.ToChecked());
|
PHPV8_EXPROP(_long, JsEndColumn, end_col.FromJust());
|
||||||
}
|
}
|
||||||
|
|
||||||
spprintf(&message_string, 0, "%s:%d: %s", filename_string, linenum, exception_string);
|
spprintf(&message_string, 0, "%s:%d: %s", filename_string, linenum, exception_string);
|
||||||
|
Loading…
Reference in New Issue
Block a user