-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
String.prototype.contains #37
Comments
Can you try again with the newer version (we bumped traceur version used). |
No difference with 1.3. |
Ok, the issue is that traceur has a runtime component that is not included in es6ify. There is a issue about that here: google/traceur-compiler#1007 Any plans to include it? I'm however not sure if it is a good idea because its quite a bit of code and the great thing about this transform is that it doesn't add much. |
You can include it using the
|
Ah that's neat, thanks! |
Ah wow, I had assumed you read the readme and already knew that ;) If that example is not obvious I'm open for improvements. |
I usually read the readme, but it doesn't mention what the runtime is needed for in detail. 😉 |
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/contains
Traceur seems to implement it: https://github.com/google/traceur-compiler/blob/9fddf9687bb4ddb7db21f05633d1ebbd6f815165/src/runtime/polyfills/String.js#L69
Any way to use it with this transform? It doesn't work currently, I've tried. :)
The text was updated successfully, but these errors were encountered: