diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/Uint8ClampedArray.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/Uint8ClampedArray.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/Uint8ClampedArray.cpp b/Libraries/LibJS/Runtime/Uint8ClampedArray.cpp index 54194a2580..5683e7f646 100644 --- a/Libraries/LibJS/Runtime/Uint8ClampedArray.cpp +++ b/Libraries/LibJS/Runtime/Uint8ClampedArray.cpp @@ -40,7 +40,8 @@ Uint8ClampedArray::Uint8ClampedArray(u32 length, Object& prototype) : Object(prototype) , m_length(length) { - define_native_property("length", length_getter, nullptr); + auto& vm = this->vm(); + define_native_property(vm.names.length, length_getter, nullptr); m_data = new u8[m_length]; } |