-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Avoid the use of length attribute in custom helpers #1194
Comments
Is this available on a public repository somewhere that we can run it locally? |
Try this repo |
Thanks for the report. I've fixed this in master and added a test for it. |
Appreciate it. Thank you too. |
nknapp
pushed a commit
that referenced
this issue
Mar 9, 2017
The use of arrays was incorrect for the data type and causing problems when hash keys conflicted with array behaviors. Fixes #1194
Appearently not. I don't know why my name appears next to the commit
7d5dba4. I don't recall anything about it.
I'm not sure if there are any backward-compatibility issues. If not, and
if somebody created a PR for 4.x (and 3.x if needed) containing only
this commit, I would merge it.
Am 2019-01-17 11:20, schrieb Philippe GRANET:
… @kpdecker [1] @nknapp [2] This fix is not reported in branch 3.x or
4.x ?
--
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [3], or mute the
thread [4].
Links:
------
[1] https://github.com/kpdecker
[2] https://github.com/nknapp
[3]
#1194 (comment)
[4]
https://github.com/notifications/unsubscribe-auth/AAm09rrplOZ7XqP5g57v7DKsmx0-I6nWks5vEE5qgaJpZM4Hp9D_
|
philippe-granet
pushed a commit
to philippe-granet/handlebars.js
that referenced
this issue
Jan 18, 2019
The use of arrays was incorrect for the data type and causing problems when hash keys conflicted with array behaviors. Fixes handlebars-lang#1194
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
When I compiled the following code
the following exception was observed.
which can be traced to the following line
On logging, I realised 'length
is being set on
hash.valueswith the value
"23"`, which threw the RangeError.Handlebars could prevent the use of reserved keywords in attributes for custom helpers
Handlebars version: 4.0.5
The text was updated successfully, but these errors were encountered: