0
0
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:
Stefan Siegl 2017-04-24 07:26:54 +02:00
parent 096454fdf4
commit 6479923c57
No known key found for this signature in database
GPG Key ID: 51575950154839CD

View File

@ -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());
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);