+added a warning when a "tostring" meta method didn't return a string.
This commit is contained in:
parent
dd9fed3692
commit
da2d8f1251
3
HISTORY
3
HISTORY
@ -1,3 +1,6 @@
|
|||||||
|
Apr. 5 2016
|
||||||
|
Added a warning when a "tostring" meta method didn't return a string
|
||||||
|
|
||||||
Mar. 29 2016
|
Mar. 29 2016
|
||||||
Added a help option to the shell
|
Added a help option to the shell
|
||||||
|
|
||||||
|
@ -15276,6 +15276,8 @@ _print:
|
|||||||
val_ptr->data.string = mb_strdup(val_ptr->data.string, strlen(val_ptr->data.string) + 1);
|
val_ptr->data.string = mb_strdup(val_ptr->data.string, strlen(val_ptr->data.string) + 1);
|
||||||
val_ptr->ref = false;
|
val_ptr->ref = false;
|
||||||
mb_make_nil(s->running_context->intermediate_value);
|
mb_make_nil(s->running_context->intermediate_value);
|
||||||
|
} else {
|
||||||
|
_handle_error_on_obj(s, SE_RN_STRING_EXPECTED, s->source_file, DON(ast), MB_FUNC_WARNING, _exit, result);
|
||||||
}
|
}
|
||||||
obj = val_ptr;
|
obj = val_ptr;
|
||||||
got_tostr = true;
|
got_tostr = true;
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user