forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AK: Bring JsonParser's string consumption closer to the ECMA 404 spec
I added some spec comments, and implementation notices, this should not change behavior in a significant way. The previous code was quite unwieldy and repetitive. The long `if(next_is('X'))` chain is now a smaller `switch`. I also reinstated the fast path for long sequences of literal characters, which was broken in 0aad21f
- Loading branch information
1 parent
c990db0
commit e02a4f5
Showing
1 changed file
with
79 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters