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

contains operator does not support Drop's valueOf #492

Closed
maiyuanrdt opened this issue Apr 12, 2022 · 1 comment
Closed

contains operator does not support Drop's valueOf #492

maiyuanrdt opened this issue Apr 12, 2022 · 1 comment

Comments

@maiyuanrdt
Copy link

maiyuanrdt commented Apr 12, 2022

When the contains operator operates on a Drop object, it cannot operate on the valueOf value.
for example:

class TemplateDrop extends Drop {
    constructor() {
    }

    valueOf() {
        return “product”
    }
}

{% if template contains "product" %}XXXX{%endif%}

@harttle harttle added the bug label Apr 12, 2022
github-actions bot pushed a commit that referenced this issue Apr 17, 2022
## [9.36.1](v9.36.0...v9.36.1) (2022-04-17)

### Bug Fixes

* contains operator does not support Drop, fixes [#492](#492) ([9e024ff](9e024ff))
* responsive header ([a56af6b](a56af6b))
* use `createRequire` for ESM, fixes [#334](#334) ([eec381e](eec381e))
@github-actions
Copy link

🎉 This issue has been resolved in version 9.36.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants