From 4c6fd491694c443cd2764c7f8e40a652b866d727 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 4 Jul 2020 10:10:06 -0700 Subject: [PATCH] LibJS: Fix String.raw.length --- Libraries/LibJS/Runtime/StringConstructor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }