What's wrong with this JavaScript unhandled rejection?

What's wrong with this JavaScript unhandled rejection crashing Node. The JavaScript code returns a promise without catch. In JavaScript unhandled rejections can terminate the process.

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

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

Whats wrong with this JavaScript unhandled rejection? #javascriptreliability

YouTube

Why does this JavaScript negative zero exist?

Why does this JavaScript negative zero exist and break sign check. The JavaScript code checks if a value is negative with less than zero. In JavaScript -0 fails the check and passes as positive.

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

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

Why does this JavaScript negative zero exist? #javascript0

YouTube

What's wrong with this JavaScript JSON parse of numbers?

What's wrong with this JavaScript JSON parse of numbers losing precision. The JavaScript code parses JSON with large integers. In JavaScript numbers over 2^53 lose precision.

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

https://www.youtube.com/watch?v=HzY-p72-XaU

Whats wrong with this JavaScript JSON parse of numbers? #javascriptapi

YouTube

What's wrong with this JavaScript prototype pollution?

What's wrong with this JavaScript prototype pollution from user merge. The JavaScript code merges user input into an object. In JavaScript __proto__ or constructor can pollute all objects.

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

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

Whats wrong with this JavaScript prototype pollution? #javascriptinjection

YouTube

What's wrong with this JavaScript RegExp stateful?

What's wrong with this JavaScript RegExp stateful with global flag. The JavaScript code reuses a regex with g flag. In JavaScript lastIndex persists and the next match starts from wrong position.

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

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

Whats wrong with this JavaScript RegExp stateful? #javascriptperformance

YouTube

Why does this JavaScript trim not removing all whitespace?

Why does this JavaScript trim not removing all whitespace. The JavaScript code uses trim on user input. In JavaScript trim only handles space tab newline not unicode spaces.

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

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

Why does this JavaScript trim not removing all whitespace? #javascriptwhitespace

YouTube

What's wrong with this JavaScript BigInt mixing with Number?

What's wrong with this JavaScript BigInt mixing with Number in a calculator. The JavaScript code adds BigInt and Number. In JavaScript this throws and crashes the app.

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

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

Whats wrong with this JavaScript BigInt mixing with Number? #javascriptnumber

YouTube

Why does this JavaScript toFixed return string?

Why does this JavaScript toFixed return string in a sum. The JavaScript code uses toFixed for display and then adds the result. In JavaScript toFixed returns a string so addition concatenates.

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

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

Why does this JavaScript toFixed return string? #javascriptperformance

YouTube

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