yodaos-project / ShadowNode

Use Node.js in your end devices(QQ: 796448809)
https://yodaos-project.github.io/ShadowNode/
Other
588 stars 46 forks source link

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

Open PixMod opened 5 years ago

PixMod commented 5 years ago

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.

yorkie commented 5 years ago

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

PixMod commented 5 years ago

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

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

yorkie commented 5 years ago

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 commented 5 years ago

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