ShadowNode icon indicating copy to clipboard operation
ShadowNode copied to clipboard

jerry: does not support String.prototype.startsWith()

Open PixMod opened this issue 5 years ago • 4 comments

ES6又提供了三种新方法。

includes():返回布尔值,表示是否找到了参数字符串。

startsWith():返回布尔值,表示参数字符串是否在源字符串的头部。

endsWith():返回布尔值,表示参数字符串是否在源字符串的尾部。

请支持。

Is your feature request related to a problem? Please describe. Please describe the problem you are trying to solve.

Describe the solution you'd like Please describe the desired behavior.

Describe alternatives you've considered Please describe alternative solutions or features you have considered.

PixMod avatar Dec 28 '18 13:12 PixMod

@morrowind Please describe your requirements in English, and answer the questions in our templates.

yorkie avatar Dec 28 '18 13:12 yorkie

@morrowind Please describe your requirements in English, and answer the questions in our templates.

我查到ES6官网上的说明,就直接c&p了,下次会用英语。

PixMod avatar Dec 29 '18 05:12 PixMod

And you should answer the questions in our templates:

Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered

yorkie avatar Dec 29 '18 05:12 yorkie

https://github.com/jerryscript-project/jerryscript/commit/d4ce20d0fdc09edd30a2d990b743459e84c4801a has been implemented these functions as you want, does anybody wanna land this on ShadowNode?

yorkie avatar Sep 22 '19 04:09 yorkie