1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibJS: Make Temporal's get_option() take a PropertyName directly

Instead of constructing a String and converting that to a PropertyName
on the fly, we can just leverage CommonPropertyNames, add a couple more
and directly pass ready-to-use PropertyNames with pre-allocated Strings.
This commit is contained in:
Linus Groh 2021-08-18 20:27:44 +01:00 committed by Andreas Kling
parent 705e5a3d87
commit 310192f918
3 changed files with 16 additions and 8 deletions

View file

@ -290,6 +290,7 @@ namespace JS {
P(of) \
P(offset) \
P(offsetNanoseconds) \
P(overflow) \
P(ownKeys) \
P(padEnd) \
P(padStart) \
@ -320,6 +321,8 @@ namespace JS {
P(revocable) \
P(revoke) \
P(round) \
P(roundingIncrement) \
P(roundingMode) \
P(seal) \
P(second) \
P(seconds) \
@ -358,6 +361,7 @@ namespace JS {
P(size) \
P(slice) \
P(small) \
P(smallestUnit) \
P(some) \
P(sort) \
P(source) \