diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-06-28 03:45:49 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-28 08:55:14 +0100 |
commit | 581f20e6f2425e1bdbee04218f6bfa1b859f0ed2 (patch) | |
tree | 3678fb22be5d98b0aec7f49e0956430f2d7b0587 /Userland/Libraries/LibJS/Runtime/GlobalObject.h | |
parent | 16eb0803fcc2c1b2235472a64b42fd2b9870a169 (diff) | |
download | serenity-581f20e6f2425e1bdbee04218f6bfa1b859f0ed2.zip |
LibJS: Accept FlyStrings in the NativeFunction constructors
This makes the implicit run-time assertion in PropertyName::to_string()
into an explicit compile-time requirement, removes a wasteful FlyString
-> PropertyName -> FlyString construction from NativeFunction::create()
and allows setting the function name to a null string for anonymous
native functions.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.h')
0 files changed, 0 insertions, 0 deletions