
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
33 lines
697 B
C++
33 lines
697 B
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJS/Runtime/Object.h>
|
|
|
|
namespace JS {
|
|
|
|
class Array : public Object {
|
|
JS_OBJECT(Array, Object);
|
|
|
|
public:
|
|
static Array* create(GlobalObject&);
|
|
static Array* create_from(GlobalObject&, const Vector<Value>&);
|
|
|
|
explicit Array(Object& prototype);
|
|
virtual void initialize(GlobalObject&) override;
|
|
virtual ~Array() override;
|
|
|
|
static Array* typed_this(VM&, GlobalObject&);
|
|
|
|
private:
|
|
virtual bool is_array() const override { return true; }
|
|
|
|
JS_DECLARE_NATIVE_GETTER(length_getter);
|
|
JS_DECLARE_NATIVE_SETTER(length_setter);
|
|
};
|
|
|
|
}
|