jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Proposal for module path handling

Open skiars opened this issue 2 years ago • 0 comments

I see now just a simple string concatenation of directory_p and specifier:

https://github.com/jerryscript-project/jerryscript/blob/0d4969661810b9e618485c284c361e597144e9b9/jerry-core/api/jerry-module.c#L141-L161

Does this mean that scenarios like absolute paths cannot be handled? My proposal for this is to add a parameter to jerry_port_path_normalize that specifies directory_size (which is also an offset to specifier).

skiars avatar Mar 02 '22 02:03 skiars