Rename resource_name to source_name (#4846)
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
@@ -49,7 +49,7 @@ set(SOURCE_EXT
|
||||
handler/handler-gc.c
|
||||
handler/handler-print.c
|
||||
handler/handler-register.c
|
||||
handler/handler-resource-name.c
|
||||
handler/handler-source-name.c
|
||||
module/module.c
|
||||
)
|
||||
|
||||
|
||||
@@ -16,13 +16,13 @@
|
||||
#include "jerryscript-ext/handler.h"
|
||||
|
||||
/**
|
||||
* Get the resource name (usually a file name) of the currently executed script or the given function object
|
||||
* Get the source name (usually a file name) of the currently executed script or the given function object
|
||||
*
|
||||
* Note: returned value must be freed with jerry_value_free, when it is no longer needed
|
||||
*
|
||||
* @return JS string constructed from
|
||||
* - the currently executed function object's resource name, if the given value is undefined
|
||||
* - resource name of the function object, if the given value is a function object
|
||||
* - the currently executed function object's source name, if the given value is undefined
|
||||
* - source name of the function object, if the given value is a function object
|
||||
* - "<anonymous>", otherwise
|
||||
*/
|
||||
jerry_value_t
|
||||
Reference in New Issue
Block a user