Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PixMod opened this issue Dec 28, 2018 · 4 comments
Open

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

PixMod opened this issue Dec 28, 2018 · 4 comments
Labels
good first issue Issues that are suitable for first-time contributors. jerry

Comments

@PixMod
Copy link

PixMod commented Dec 28, 2018

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 PixMod added the string label Dec 28, 2018
@yorkie yorkie removed the string label Dec 28, 2018
@yorkie yorkie changed the title String: does not support String.prototype.startsWith() jerry: does not support String.prototype.startsWith() Dec 28, 2018
@yorkie yorkie added the jerry label Dec 28, 2018
@yorkie
Copy link
Member

yorkie commented Dec 28, 2018

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

@yorkie yorkie added invalid and removed invalid labels Dec 28, 2018
@PixMod
Copy link
Author

PixMod commented Dec 29, 2018

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

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

@yorkie
Copy link
Member

yorkie commented Dec 29, 2018

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

@legendecas legendecas added the good first issue Issues that are suitable for first-time contributors. label Dec 29, 2018
@yorkie
Copy link
Member

yorkie commented Sep 22, 2019

jerryscript-project/jerryscript@d4ce20d has been implemented these functions as you want, does anybody wanna land this on ShadowNode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issues that are suitable for first-time contributors. jerry
Projects
None yet
Development

No branches or pull requests

5 participants