Implement Regexp.prototype[@@match] method (#3345)
The algorithm is based on ECMA-262 v6, 21.2.5.6 The following helper methods are also implemented: - RegExpExec: ECMA-262 v6, 21.2.5.2.1 - AdvanceStringIndex: ECMA-262 v6, 21.2.5.2.3 JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
committed by
Robert Fancsik
parent
9725936848
commit
0c6b306429
@@ -2605,7 +2605,9 @@ ecma_op_is_regexp (ecma_value_t arg) /**< argument */
|
||||
|
||||
if (!ecma_is_value_undefined (is_regexp))
|
||||
{
|
||||
return ecma_make_boolean_value (ecma_op_to_boolean (is_regexp));
|
||||
const bool to_bool = ecma_op_to_boolean (is_regexp);
|
||||
ecma_free_value (is_regexp);
|
||||
return ecma_make_boolean_value (to_bool);
|
||||
}
|
||||
|
||||
return ecma_make_boolean_value (ecma_object_is_regexp_object (arg));
|
||||
|
||||
Reference in New Issue
Block a user