1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 18:08:12 +00:00

LibJS: Fix String.raw.length

This commit is contained in:
Matthew Olsson 2020-07-04 10:10:06 -07:00 committed by Andreas Kling
parent 3f97d75778
commit 4c6fd49169

View file

@ -47,7 +47,7 @@ void StringConstructor::initialize(Interpreter& interpreter, GlobalObject& globa
define_property("length", Value(1), Attribute::Configurable);
u8 attr = Attribute::Writable | Attribute::Configurable;
define_native_function("raw", raw, 0, attr);
define_native_function("raw", raw, 1, attr);
define_native_function("fromCharCode", from_char_code, 1, attr);
}