Kaynağa Gözat

LibJS: Fix String.raw.length

Matthew Olsson 5 yıl önce
ebeveyn
işleme
4c6fd49169
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      Libraries/LibJS/Runtime/StringConstructor.cpp

+ 1 - 1
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);
 }