"block-scoping/let" kata is broken, due to using var
which creates a global variable #2
Labels
No Label
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: wolframkriesing/jskatas-org#2
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The following kata does not work currently: https://jskatas.org/katas/es6/language/block-scoping/let/
Why?
Currently the test is executed in the global space, simply said, just using
new Function(sourceCode)()
. This resulted in the following when running this test:The code
var letX = true;
defines the variableletX
in the global space, this results in the assertion NOT to fail.The `let` kata does not work anymore, due to using `var` which creates a global variableto "block-scoping/let" kata is broken, due to using `var` which creates a global variablePossible solutions:
document
document
could be passed in as parameter, I thinkfixed in
20feffbd3d