Why does this JavaScript Object is vs === for NaN?

Why does this JavaScript Object is vs === for NaN check. The JavaScript code uses === to detect NaN. In JavaScript Object.is is needed for NaN and negative zero.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascriptapi #javascriptengineeri...

https://www.youtube.com/watch?v=ViTzYGW4VsQ

Why does this JavaScript Object is vs for NaN? #whatswrongwiththisjavascriptcode

YouTube

Why does this JavaScript WeakMap key garbage collected?

Why does this JavaScript WeakMap key garbage collected too early. The JavaScript code stores data in WeakMap keyed by object. In JavaScript without a strong reference the entry disappears.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #ja...

https://www.youtube.com/watch?v=Fhsma8Whwqc

Why does this JavaScript WeakMap key garbage collected? #javascriptreliability

YouTube

Why does this JavaScript Object keys on array?

Why does this JavaScript Object keys on array returning string indices. The JavaScript code uses Object.keys on an array. In JavaScript keys are string numbers and holes are skipped.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascriptapi #ja...

https://www.youtube.com/watch?v=py5dxuq7WYI

Why does this JavaScript Object keys on array? #javascriptsecurity

YouTube

Why does this JavaScript substring vs substr deprecated?

Why does this JavaScript substring vs substr giving different results. The JavaScript code uses substr which is deprecated and has different semantics. In JavaScript substr start and length vs substring start and end.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperforma...

https://www.youtube.com/watch?v=NuJUpsP2c4E

Why does this JavaScript substring vs substr deprecated? #javascriptperformance

YouTube

Why does this JavaScript Array from object returning wrong?

Why does this JavaScript Array from object returning wrong length. The JavaScript code creates array from array-like using length. In JavaScript a malicious length can allocate huge or wrong size.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptrel...

https://www.youtube.com/watch?v=RXjQ1w5hEeg

Why does this JavaScript Array from object returning wrong? #whatswrongwiththisjavascriptcode

YouTube

What's wrong with this JavaScript Array push return?

What's wrong with this JavaScript Array push return in a chain. The JavaScript code chains after push assuming it returns the array. In JavaScript push returns the new length not the array.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #java...

https://www.youtube.com/watch?v=EPiy-R7pxpU

Whats wrong with this JavaScript Array push return? #javascriptbackend

YouTube

What's wrong with this JavaScript setTimeout closure?

What's wrong with this JavaScript setTimeout closure in a loop. The JavaScript code creates timeouts in a loop with var. In JavaScript all callbacks see the final value.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascriptapi #javascri...

https://www.youtube.com/watch?v=4_JoaMBt8IE

Whats wrong with this JavaScript setTimeout closure? #javascriptcodereview

YouTube

What's wrong with this JavaScript default parameter evaluation?

What's wrong with this JavaScript default parameter evaluation timing. The JavaScript code uses an expression as default. In JavaScript defaults are evaluated at call time and can have side effects.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascr...

https://www.youtube.com/watch?v=vegh7-gxWZ4

Whats wrong with this JavaScript default parameter evaluation? #javascriptengineering

YouTube

What's wrong with this JavaScript cache data?

What's wrong with this JavaScript cache data in a response handler. The JavaScript code caches a mutable array and returns it directly, so callers mutate shared state. In JavaScript services this causes ghost data.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascrip...

https://www.youtube.com/watch?v=kYEdUmbJb2Y

Whats wrong with this JavaScript cache data? #javascriptbackend

YouTube

What's wrong with this JavaScript Map for object keys?

What's wrong with this JavaScript Map for object keys with reference equality. The JavaScript code uses objects as Map keys. In JavaScript key lookup uses reference so same-shaped objects do not match.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptrel...

https://www.youtube.com/watch?v=XPMqdgpMOqY

Whats wrong with this JavaScript Map for object keys? #whatswrongwiththisjavascriptcode

YouTube