diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-07-04 10:10:06 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-06 23:40:35 +0200 |
commit | 4c6fd491694c443cd2764c7f8e40a652b866d727 (patch) | |
tree | f256d3da246dfd0c7b507bec5eaf12af43b13c7e /Libraries/LibJS/Runtime | |
parent | 3f97d75778998b160372e895ccaba03cf09ad4aa (diff) | |
download | serenity-4c6fd491694c443cd2764c7f8e40a652b866d727.zip |
LibJS: Fix String.raw.length
Diffstat (limited to 'Libraries/LibJS/Runtime')
-rw-r--r-- | Libraries/LibJS/Runtime/StringConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/StringConstructor.cpp b/Libraries/LibJS/Runtime/StringConstructor.cpp index e6823b5315..1fc3d2f283 100644 --- a/Libraries/LibJS/Runtime/StringConstructor.cpp +++ b/Libraries/LibJS/Runtime/StringConstructor.cpp @@ -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); } |