1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00
serenity/Libraries/LibJS/Tests
Andreas Kling c60dc84a33 LibJS: Allow function calls with missing arguments
We were interpreting "undefined" as a variable lookup failure in some
cases and throwing a ReferenceError exception instead of treating it
as the valid value "undefined".

This patch wraps the result of variable lookup in Optional<>, which
allows us to only throw ReferenceError when lookup actually fails.
2020-03-27 12:56:05 +01:00
..
array-basic.js LibJS: Rename some tests 2020-03-25 15:57:18 +01:00
for-basic.js LibJS: Handle "for" statements with empty initializer and updater 2020-03-25 16:14:51 +01:00
function-missing-arg.js LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00
NaN-basic.js LibJS: Add global isNaN() function 2020-03-27 12:45:36 +01:00
Object.prototype.hasOwnProperty.js LibJS: Add a very basic test runner (shell script) + some tests 2020-03-25 15:32:17 +01:00
run-tests LibJS: Tweak run-tests output a bit 2020-03-25 15:52:17 +01:00
String.prototype.charAt.js LibJS: Add a very basic test runner (shell script) + some tests 2020-03-25 15:32:17 +01:00
throw-basic.js LibJS: Add a basic test for the "throw" keyword 2020-03-25 16:09:23 +01:00
typeof-basic.js LibJS: Rename some tests 2020-03-25 15:57:18 +01:00
variable-undefined.js LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00