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

LibJS: Add all of the FinalizationRegistry.prototype methods

More specifically: cleanupSome, register & unregister.

FinalizationRegistery.prototype.cleanupSome is actually still a stage 2
proposal, but since test262 test cases already exist for it, i decided
to go for it :)
This commit is contained in:
Idan Horowitz 2021-06-15 22:21:24 +03:00 committed by Linus Groh
parent de9fa6622a
commit e1b0719435
7 changed files with 174 additions and 0 deletions

View file

@ -75,6 +75,7 @@ namespace JS {
P(ceil) \
P(charAt) \
P(charCodeAt) \
P(cleanupSome) \
P(clear) \
P(clz32) \
P(concat) \
@ -310,6 +311,7 @@ namespace JS {
P(undefined) \
P(unescape) \
P(unicode) \
P(unregister) \
P(unshift) \
P(value) \
P(valueOf) \
@ -321,6 +323,7 @@ struct CommonPropertyNames {
PropertyName catch_ { "catch", PropertyName::StringMayBeNumber::No };
PropertyName delete_ { "delete", PropertyName::StringMayBeNumber::No };
PropertyName for_ { "for", PropertyName::StringMayBeNumber::No };
PropertyName register_ { "register", PropertyName::StringMayBeNumber::No };
PropertyName return_ { "return", PropertyName::StringMayBeNumber::No };
PropertyName throw_ { "throw", PropertyName::StringMayBeNumber::No };
#define __ENUMERATE(x) PropertyName x { #x, PropertyName::StringMayBeNumber::No };