1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:18:13 +00:00
serenity/Libraries
Matthew Olsson 786722149b LibJS: Add strict mode
Adds the ability for a scope (either a function or the entire program)
to be in strict mode. Scopes default to non-strict mode.

There are two ways to determine the strict-ness of the JS engine:

1. In the parser, this can be accessed with the parser_state variable
   m_is_strict_mode boolean. If true, the Parser is currently parsing in
   strict mode. This is done so that the Parser can generate syntax
   errors at parse time, which is required in some cases.

2. With Interpreter.is_strict_mode(). This allows strict mode checking
   at runtime as opposed to compile time.

Additionally, in order to test this, a global isStrictMode() function
has been added to the JS ReplObject under the test-mode flag.
2020-05-28 17:18:42 +02:00
..
LibAudio Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
LibC LibC: run clang-format on getopt.h to remove tab characters 2020-05-28 17:01:31 +02:00
LibCore AK: Rename FileSystemPath -> LexicalPath 2020-05-26 14:35:10 +02:00
LibCrypto LibCrypto+LibTLS: Use AK/Random.h 2020-05-27 12:28:17 +02:00
LibDebug LibDebug: Make sure to not single step the program twice 2020-05-24 10:42:21 +02:00
LibDesktop LaunchServer: Discover handlers from *.af files, allow launching based on a known handler 2020-05-18 11:27:27 +02:00
LibELF Kernel: Absorb LibBareMetal back into the kernel 2020-05-16 12:00:04 +02:00
LibGemini LibGemini: Implement rendering text/gemini documents to HTML 2020-05-17 16:35:42 +02:00
LibGfx AK: Rename FileSystemPath -> LexicalPath 2020-05-26 14:35:10 +02:00
LibGUI LibGUI: Don't show big Buggie in app about dialogs 2020-05-28 11:45:01 +02:00
LibHTTP ProtocolServer: Support request headers 2020-05-21 12:27:42 +02:00
LibIPC Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
LibJS LibJS: Add strict mode 2020-05-28 17:18:42 +02:00
LibLine LibLine: Send over some properties when being inspected 2020-05-27 11:13:02 +02:00
LibM LibM: Add M_SQRT2 and M_SQRT1_2 2020-05-24 23:30:12 +02:00
LibMarkdown Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
LibPCIDB Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
LibProtocol ProtocolServer: Support request headers 2020-05-21 12:27:42 +02:00
LibPthread Revert "Build: Include headers from LibC, LibM, and LibPthread with -isystem" 2020-05-20 16:24:26 +02:00
LibTextCodec LibTextCodec: Improve Latin-1 decoder so it decodes everything 2020-05-27 19:52:18 +02:00
LibThread Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
LibTLS LibCrypto+LibTLS: Use AK/Random.h 2020-05-27 12:28:17 +02:00
LibUnwind LibUnwind: Create UnwindBase.h to capture the EH ABI in code 2020-05-14 08:50:10 +02:00
LibVT LibVT: Move most of key press handling logic into VT::Terminal 2020-05-27 11:19:38 +02:00
LibWeb LibJS: Object index properties have descriptors; Handle sparse indices 2020-05-28 17:17:13 +02:00
LibX86 Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
CMakeLists.txt Revert "LibC: Implement Itanium C++ ABI for static variable guards" 2020-05-20 16:24:26 +02:00