Implement ecma_stringbuilder_create_raw method for stringbuilder (#3584)
With this new method, we can create a stringbuilder from a raw string JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
This commit is contained in:
1 parent
ec39d08d67
commit
aa17a4fa5d
6 files changed
+30
-11
No files matched your search
@@ -295,9 +295,8 @@ static void
|
||||
static_snapshot_error_unsupported_literal (snapshot_globals_t *globals_p, /**< snapshot globals */
|
||||
ecma_value_t literal) /**< literal form the literal pool */
|
||||
{
|
||||
ecma_stringbuilder_t builder = ecma_stringbuilder_create ();
|
||||
|
||||
ecma_stringbuilder_append_raw (&builder, (lit_utf8_byte_t *) "Unsupported static snapshot literal: ", 37);
|
||||
lit_utf8_byte_t *str_p = (lit_utf8_byte_t *) "Unsupported static snapshot literal: ";
|
||||
ecma_stringbuilder_t builder = ecma_stringbuilder_create_raw (str_p, 37);
|
||||
|
||||
JERRY_ASSERT (!ECMA_IS_VALUE_ERROR (literal));
|
||||
|
||||
|
||||
Reference in new issue
Block a user