Open FranckFreiburger opened 1 year ago
Is jerry_source_name()
suitable for this purpose, (even if it depends on JERRY_SOURCE_NAME
) ?
Seems so. There is a test for that https://github.com/jerryscript-project/jerryscript/blob/master/tests/unit-core/test-source-name.c#L123
I wondering if it is possible to get the module filename from the
module_import_meta_callback
My aim is to implementimport.meta.url
The first argument of the callback isconst jerry_value_t module
, but I don't know if I can get this information from here.