add string initialisation

This commit is contained in:
2025-08-09 18:51:23 +01:00
parent 345c4ce841
commit b755e574bd
3 changed files with 81 additions and 7 deletions

View File

@@ -182,7 +182,7 @@ ArErr run_call(ArgonObject *original_object, size_t argc, ArgonObject **argv,
state->registers[0] = object->value.native_fn(argc, argv, &err, state);
if (to_free_args)
free(argv);
if (err.exists) {
if (err.exists && strlen(err.path) == 0) {
err.line = state->source_location.line;
err.column = state->source_location.column;
err.length = state->source_location.length;