1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 10:45:08 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins
Linus Groh d85b9fd5a0 LibJS: Bring back runtime validation of RegExp flags
This is a partial revert of commit 60064e2, which removed the validation
of RegExp flags during runtime and expected the parser to do that
exclusively - however this was not taking into account the RegExp()
constructor, which was subsequently crashing on invalid flags.

Also adds test for these constructor error cases, which were obviously
missing before.

Fixes #7042.
2021-05-11 22:47:14 +01:00
..
Array LibJS/Tests: Use hasOwnProperty() for duplicate test check 2021-05-05 15:58:53 +01:00
ArrayBuffer LibJS: ArrayBuffer.prototype.slice 2021-04-03 16:24:44 +02:00
BigInt LibJS: Removed a fixme in a test of BigInt.prototype.valueOf 2021-04-11 20:51:58 +02:00
Boolean Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Date LibJS Date: Added "Invalid Date". 2021-03-22 20:58:22 +01:00
Error LibJS: Add name and message properties to NativeError prototypes 2021-04-14 10:11:04 +02:00
Function LibJS: Change non-ScriptFunction source string to "[native code]" 2021-03-14 19:22:16 +01:00
functions LibJS: Implement the encode/decodeURI(Component) family of functions 2021-04-14 13:30:10 +02:00
Infinity Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
JSON LibJS: Dont try to serialize symbol-keyed properties 2021-04-16 19:22:29 +02:00
Math LibJS: Correctly handle mixing +0 and -0 in Math.{min,max}() 2021-04-23 20:51:48 +02:00
NaN Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Number LibJS: Use u64 instead of u32 in NumberPrototype::to_string 2021-05-11 18:29:55 +01:00
Object LibJS: Make Object.getOwnPropertyDescriptor() work with string indexed property 2021-04-20 18:53:07 +02:00
Promise LibJS: Add initial support for Promises 2021-04-02 10:47:40 +02:00
Proxy LibJS/Tests: Rename function parameter from 'arguments' to 'arguments_' 2021-05-10 11:54:01 +01:00
Reflect LibJS: Let Object::get_own_properties() return both strings and symbols 2021-04-05 19:30:30 +02:00
RegExp LibJS: Bring back runtime validation of RegExp flags 2021-05-11 22:47:14 +01:00
String LibJS: Implement String.prototype.substr according to the spec 2021-04-15 08:38:19 +02:00
Symbol Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TypedArray LibJS: Implement initializing a TypedArray from an iterable object 2021-04-17 00:24:09 +02:00