Closed slikts closed 6 years ago
@slikts correct, you can read more in here why the example was like that: https://itnext.io/a-tiny-disastrous-ecmascript-change-fadc05c83e69
TL;DR they changed specs recently and I haven't had the time to catch up with the docs, any help welcome, thanks
Using the example @slikts provided, I opened a PR on the documentation repo here:
thanks @spencerkordecki !
A fiddle with the example; the "same unique Array" assertion fails: https://jsfiddle.net/slikts/zbwyhs3a/
Example in question: https://viperhtml.js.org/hyperhtml/documentation/#introduction-1
The reason the arrays are not the same is that it also needs to be the same template literal. Namely, instead of:
It should be wrapped in a function:
Updated fiddle where the assertion works: https://jsfiddle.net/slikts/zbwyhs3a/5/