-
Notifications
You must be signed in to change notification settings - Fork 221
List of JavaScript Kata to Update
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
can be replaced by using named functions f
and then access f.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.
Native BigInt
s are available in Node 10.x. JS versions of all BigInt katas (arithmetic operations to numbers represented as strings) should be removed once Node 8.x is deprecated in the future.
Though they should've been removed already anyway since bignumber.js
is installed in the environment, which means require
would have to be disabled. Which does nothing anyway because people can just copy the entire minified source code from the bignumber.js
repo into their solution, and things go out of hand very quickly with this.