1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins
Timothy Flynn b6093ae2e3 LibJS: Implement String.prototype.substr according to the spec
Fixes #6325

The JavaScript on the HTML Spec site that caused the crash is:
    window.location.hash.substr(1)

Of course, window.location.hash can be the empty string. The spec allows
for calling substr(1) on an empty string, but our partial implementation
wasn't handling it properly.
2021-04-15 08:38:19 +02:00
..
Array LibJS: Array.from mapFn fixes + thisArg support 2021-04-13 15:16:16 +02: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 Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Math LibJS: Improve correctness of rounding and bitwise operations 2021-02-05 09:38:45 +01:00
NaN Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Number Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object LibJS: Implement Object.create() 2021-04-10 21:00:04 +02:00
Promise LibJS: Add initial support for Promises 2021-04-02 10:47:40 +02:00
Proxy Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Reflect LibJS: Let Object::get_own_properties() return both strings and symbols 2021-04-05 19:30:30 +02:00
RegExp LibRegex: Generate a 'Compare' op for empty character classes 2021-04-12 08:54:58 +02: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: Added tests for constructing TypeArray from another 2021-04-09 09:05:19 +02:00