Rework jerry_parse function. (#2282)
Remove jerry_parse_named_resource, merge its arguments to jerry_parse and change is_strict argument to an option list for possible future extensions. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -42,7 +42,7 @@ static int load_javascript() {
|
||||
const jerry_char_t* code = reinterpret_cast<const jerry_char_t*>(js_codes[src].source);
|
||||
const size_t length = js_codes[src].length;
|
||||
|
||||
jerry_value_t parsed_code = jerry_parse(code, length, false);
|
||||
jerry_value_t parsed_code = jerry_parse(NULL, 0, code, length, JERRY_PARSE_NO_OPTS);
|
||||
|
||||
if (jerry_value_has_error_flag(parsed_code)) {
|
||||
LOG_PRINT_ALWAYS("jerry_parse failed [%s]\r\n", js_codes[src].name);
|
||||
|
||||
Reference in New Issue
Block a user