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
Before filing issues, please check the following points first:
This will probably help you to get a solution faster. For bugs, it would be great to have a PR with a failing test-case.
I have been trying the example from the docs calling String.prototype.trim to work, but it does not seem to return the desired result (https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access).
String.prototype.trim
https://jsfiddle.net/3yahoj1d/
Can anyone explain why the result prints as [object Object] to the console when typeof result returns string, or how to get the example to work?
[object Object]
typeof result
string
I have also asked this on StackOverflow (https://stackoverflow.com/q/67416982/5115898) so feel free to close this issue if this is not a problem with handlebars itself.
The text was updated successfully, but these errors were encountered:
jaylinski
No branches or pull requests
Before filing issues, please check the following points first:
This will probably help you to get a solution faster.
For bugs, it would be great to have a PR with a failing test-case.
I have been trying the example from the docs calling
String.prototype.trim
to work, but it does not seem to return the desired result (https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access).https://jsfiddle.net/3yahoj1d/
Can anyone explain why the result prints as
[object Object]
to the console whentypeof result
returnsstring
, or how to get the example to work?I have also asked this on StackOverflow (https://stackoverflow.com/q/67416982/5115898) so feel free to close this issue if this is not a problem with handlebars itself.
The text was updated successfully, but these errors were encountered: