-
Notifications
You must be signed in to change notification settings - Fork 221
List of JavaScript Kata to Update
Voile edited this page May 6, 2020
·
31 revisions
arguments.callee
should not be used even if it succeeds (which happens in user solution), because it doesn't work in strict mode and the test fixture runs in strict mode.
arguments.callee.caller
should be replaced by using named functions FunctionName
and then access {FunctionName}.caller
. Getters cannot have a function name, so Object.defineProperty
should be used instead. Note that the use of Function.caller
is still extremely discouraged since it is deprecated, and it doesn't work in strict mode either.
Let's start by deprecating Node 6.x.
The following kata does not have 8.x/10.x supported. Some of these can be retired if it's not possible (or not worth the effort) to fix.
-
Algebraic Data Types
RangeError: Maximum call stack size exceeded
-
Anakin's Colorful Protocol Droids
- Relies on specific version of Babel that no longer exists
- Preloaded defines
Droid
constructor function, solution defines its methods
-
Currying vs. Partial Application
- Preloaded defines
Function.prototype.bind
to throw error.
- Preloaded defines
-
Don't rely on luck HARDCORE
TypeError: describe is not a function
- Relies on how files are concatenated by the runner. Test starts with the following lines:
myguess=guess; describe=anticheatqwru9124808124.describe; it=anticheatqwru9124808124.it; })();
-
Fast Stats on an Array
TypeError: Cannot delete property '3' of [object Object]
-
Find the hidden object
TypeError: Cannot read property 'message' of undefined
- No sample tests
-
Green Glass Roof- Puzzles #6
SyntaxError: Unexpected token (
-
Helper Functions and Recursion - Factorials, Permutations and Combinations
Oops, it seems that you have not used recursion in your function. Please try again.
-
Implement Debounce
- Overrides
require
- Overrides
-
Insert into xml object - xml #3
- Random tests are failing
-
Lists and Objects - Top Trump Optimizer
TypeError: compose is not a function
-
ONE ONe One oneShould be retired because the kata relies on an optimization specific for Node 6.- Timeouts
-
Parse all my XML please - Angular #1
TypeError: Cannot read property 'player1' of undefined
-
Shorten Me: Array Declaration I (Console)
- Test fails
-
Token passing - Hack this code #2Should be retired because it does not conform to beta kata standard: the task is unspecified, with kata author insisting that, paraphrased, "it is the puzzle of the kata". -
Type Aware - Advanced Test Fixture #1Should be retired because the test suite is reinventing the testing framework in an extremely hacky, fragile and hostile way.