Return the underlying string
Synopsis
Declared in <mrdocs/Support/JavaScript.hpp>
std::string
getString() const;
Description
This function returns the value as a string.
This function performs no coercions. If the value is not a string, it is not converted to a string.
JerryScript allocates a new buffer for string extraction, so the returned value is an owning std::string rather than a view.
|
Note
|
Behaviour is undefined if |
Return Value
the underlying string
Created with MrDocs