Introduce jerry_get_resource_name API function (#3236)

This new API function adds possibility to query the resource name of the currently executed script (including modules) or a function object.
This patch closes #2170.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
This commit is contained in:
Robert Fancsik authored and Dániel Bátyai committed 2019-11-06 15:05:49 +01:00
1 parent 55423ab82a
commit 525c35f148
16 files changed
+415 -82

No files matched your search

+1 -1
View File
@@ -51,4 +51,4 @@ try {
/* Check properties of a */
assert(Object.keys(a) == "one,two");
/* Check properties of global object */
assert(Object.keys(this) == "assert,gc,print,a,fail,fail_two");
assert(Object.keys(this) == "assert,gc,print,resourceName,a,fail,fail_two");