1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:05:08 +00:00
serenity/Libraries/LibJS
Marcin Gasperowicz b24ce0b5ee LibJS: Implement String.prototype.split
This adds a String.prototype.split implementation modelled after 
ECMA262 specification. 

Additionally, `Value::to_u32` was added as an implementation of
the standard `ToUint32` abstract operation.

There is a tiny kludge for when the separator is an empty string. 
Basic tests and visiting google.com prove that this is working.
2021-01-10 21:27:59 +01:00
..
Heap LibJS: Disable ASAN during the conservative GC stack scan 2021-01-05 12:27:45 +01:00
Runtime LibJS: Implement String.prototype.split 2021-01-10 21:27:59 +01:00
Tests LibJS: Implement String.prototype.split 2021-01-10 21:27:59 +01:00
AST.cpp LibJS: Remove hand-rolled type information in JS AST in favor of RTTI 2021-01-01 19:34:07 +01:00
AST.h LibJS: Remove hand-rolled type information in JS AST in favor of RTTI 2021-01-01 19:34:07 +01:00
CMakeLists.txt LibJS: Use new format functions everywhere 2020-12-06 18:52:52 +01:00
Console.cpp LibJS: Use regular stack for VM call frames instead of Vector storage 2020-11-07 13:58:28 +01:00
Console.h LibJS: Move Console from Interpreter to GlobalObject 2020-09-29 21:15:06 +02:00
Forward.h Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
Interpreter.cpp LibJS: Remove hand-rolled type information in JS AST in favor of RTTI 2021-01-01 19:34:07 +01:00
Interpreter.h LibJS: Track source positions all the way down to exceptions 2020-12-29 00:58:43 +01:00
Lexer.cpp LibJS: Don't treat '?.' followed by decimal digit as QuestionMarkPeriod 2020-12-14 22:25:46 +01:00
Lexer.h LibJS: Include source location hint in Parser::print_errors() 2020-12-06 18:52:52 +01:00
MarkupGenerator.cpp LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTI 2021-01-01 17:46:39 +01:00
MarkupGenerator.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
Parser.cpp LibJS: Remove hand-rolled type information in JS AST in favor of RTTI 2021-01-01 19:34:07 +01:00
Parser.h LibJS: Don't save rule start positions along with the parser state 2020-12-29 17:39:42 +01:00
SourceRange.h LibJS: Track source positions all the way down to exceptions 2020-12-29 00:58:43 +01:00
Token.cpp LibJS: Use GenericLexer for Token::string_value() 2020-10-29 11:52:31 +01:00
Token.h LibJS: Add message string to Token 2020-10-26 21:38:34 +01:00