diff options
author | Linus Groh <mail@linusgroh.de> | 2021-07-06 14:36:00 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-06 14:36:00 +0100 |
commit | 30615ac2bba1cb31104f32b87a86695eb5d3bc31 (patch) | |
tree | 93ef879f7f763cf582587768c5121fdfd7d6cbba | |
parent | 0ba81dc0b751f55c23f3a6d3c4cd00ea458af116 (diff) | |
download | serenity-30615ac2bba1cb31104f32b87a86695eb5d3bc31.zip |
LibJS: Do s/define_property/define_direct_property/ in a comment
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp b/Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp index 5067d69c17..06dad088e8 100644 --- a/Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp @@ -70,7 +70,7 @@ void ArrayPrototype::initialize(GlobalObject& global_object) define_native_function(vm.names.entries, entries, 0, attr); define_native_function(vm.names.copyWithin, copy_within, 2, attr); - // Use define_property here instead of define_native_function so that + // Use define_direct_property here instead of define_native_function so that // Object.is(Array.prototype[Symbol.iterator], Array.prototype.values) // evaluates to true // 23.1.3.33 Array.prototype [ @@iterator ] ( ), https://tc39.es/ecma262/#sec-array.prototype-@@iterator |