Mátyás Mustoha
f13e8b602e
Fix position calculations of String.startsWith ( #3734 )
...
Fixes two bugs in the index calculations that affect the result
of the `String.startsWith` function:
- Fixes the implementation of ECMA-262 v6, 21.1.3.18, step 14:
"If searchLength+start is greater than len, return false".
- Fixes the return value of the helper function
`ecma_builtin_helper_string_find_index`. If it is called with a
starting search position, the returned index should be
not less than that.
These changes fix the following test cases in the test262 suite:
- built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js
- built-ins/String/prototype/startsWith/searchstring-found-with-position.js
JerryScript-DCO-1.0-Signed-off-by: Mátyás Mustoha mmatyas@inf.u-szeged.hu
2020-05-15 22:18:42 +02:00
..
2020-02-24 11:15:36 +01:00
2019-11-28 14:44:55 +01:00
2019-11-28 14:44:55 +01:00
2019-12-19 16:34:23 +01:00
2020-02-03 16:39:04 +01:00
2020-05-11 13:42:46 +02:00
2020-02-24 14:06:14 +01:00
2020-05-15 16:36:06 +02:00
2020-02-14 10:25:26 +01:00
2019-12-09 12:07:25 +01:00
2019-10-24 14:44:51 +02:00
2019-12-16 11:44:15 +01:00
2020-02-14 10:25:26 +01:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2020-02-14 10:25:26 +01:00
2019-10-16 16:41:27 +02:00
2019-10-24 14:44:51 +02:00
2019-04-16 08:26:39 +02:00
2020-02-14 10:25:26 +01:00
2020-04-06 12:00:58 +02:00
2019-11-20 11:51:02 +01:00
2020-02-03 16:39:04 +01:00
2020-02-14 10:25:26 +01:00
2020-01-10 15:40:00 +01:00
2017-03-23 09:36:29 +01:00
2016-12-08 06:39:11 +01:00
2020-02-14 10:25:26 +01:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2020-02-14 10:25:26 +01:00
2020-04-04 02:04:02 +02:00
2019-10-21 13:46:29 +02:00
2020-02-14 10:25:26 +01:00
2020-01-15 12:01:58 +01:00
2020-02-14 10:25:26 +01:00
2020-01-15 12:01:58 +01:00
2020-02-14 10:25:26 +01:00
2020-01-15 12:01:58 +01:00
2020-01-15 12:01:58 +01:00
2020-01-15 12:01:58 +01:00
2020-01-15 12:01:58 +01:00
2020-03-27 10:50:49 +01:00
2020-03-27 10:50:49 +01:00
2019-11-26 13:04:11 +01:00
2020-03-16 14:37:47 +01:00
2019-09-12 13:05:24 +02:00
2020-02-24 14:06:14 +01:00
2020-01-23 15:53:37 +01:00
2018-08-22 08:49:12 +02:00
2020-05-15 22:18:42 +02:00
2020-03-27 10:37:06 +01:00
2020-03-27 14:46:51 +01:00
2020-03-27 10:50:49 +01:00
2020-03-27 10:50:49 +01:00
2019-11-28 14:44:55 +01:00
2019-11-28 14:44:55 +01:00
2020-05-11 15:18:18 +02:00
2019-10-24 14:44:51 +02:00
2019-10-24 14:44:51 +02:00
2019-06-24 11:18:37 +02:00
2019-11-28 14:44:55 +01:00
2019-12-03 15:39:11 +01:00
2019-12-16 11:44:15 +01:00
2020-02-14 10:25:26 +01:00
2020-04-27 11:43:35 +02:00
2020-03-10 11:15:00 +01:00
2019-12-09 12:07:25 +01:00
2019-07-17 14:10:20 +02:00
2019-12-09 12:07:25 +01:00
2020-03-27 10:50:49 +01:00
2020-03-27 14:46:51 +01:00
2020-03-27 14:46:51 +01:00
2020-03-27 14:46:51 +01:00
2020-03-27 14:46:51 +01:00
2020-02-14 10:25:26 +01:00
2019-04-09 10:14:46 +02:00
2020-02-14 10:25:26 +01:00
2020-02-03 16:39:04 +01:00
2020-02-14 10:25:26 +01:00
2020-02-28 14:41:59 +01:00
2020-02-28 14:41:59 +01:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2020-02-14 10:25:26 +01:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2020-02-14 10:25:26 +01:00
2020-04-14 16:57:47 +02:00
2020-02-24 11:02:06 +01:00
2020-05-04 14:10:56 +02:00
2020-05-08 12:25:45 +02:00
2020-05-14 17:10:27 +02:00
2020-02-14 10:25:26 +01:00
2019-10-24 14:44:51 +02:00
2019-06-24 11:18:37 +02:00
2019-11-28 14:44:55 +01:00
2019-11-28 14:44:55 +01:00
2019-12-16 11:44:15 +01:00
2020-02-14 10:25:26 +01:00
2020-02-03 16:39:04 +01:00
2019-11-28 14:44:55 +01:00
2020-03-27 10:37:06 +01:00
2019-11-29 11:17:15 +01:00
2020-05-04 15:08:14 +02:00
2020-02-14 10:25:26 +01:00
2019-10-24 14:44:51 +02:00
2020-02-14 10:25:26 +01:00
2019-10-25 15:58:47 +02:00
2020-02-24 14:06:14 +01:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2020-02-14 10:25:26 +01:00
2020-01-23 15:53:37 +01:00
2017-03-23 09:36:29 +01:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2020-02-14 10:25:26 +01:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2019-04-09 10:14:46 +02:00
2020-02-14 10:25:26 +01:00
2019-11-22 13:55:36 +01:00
2019-11-19 19:27:31 +01:00
2019-11-19 19:27:31 +01:00
2020-02-14 10:25:26 +01:00
2019-11-22 13:55:36 +01:00
2019-11-19 19:27:31 +01:00
2019-11-19 19:27:31 +01:00
2020-02-14 10:25:26 +01:00
2020-01-23 15:53:37 +01:00
2020-04-22 08:36:23 +02:00
2020-03-16 14:37:47 +01:00
2020-05-07 08:58:42 +02:00