diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-06-10 22:37:56 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-10 22:44:26 +0100 |
commit | 8dc86c6aadb6114f5f32809ed3e3a295648ea549 (patch) | |
tree | ed27257cb6d1edbb4106ec8d26a03c81bbac0162 /Userland/Libraries/LibJS/Runtime/ArrayBuffer.h | |
parent | b041108a1e4afc72905be9b60285890ddf41ad48 (diff) | |
download | serenity-8dc86c6aadb6114f5f32809ed3e3a295648ea549.zip |
LibJS: Bring ArrayBuffer.prototype.slice closer to spec
The exception order was incorrect in the old implementation, and it
did not use the Symbol.species constructor as required by the spec.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ArrayBuffer.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ArrayBuffer.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ArrayBuffer.h b/Userland/Libraries/LibJS/Runtime/ArrayBuffer.h index d731afc322..db2e13b605 100644 --- a/Userland/Libraries/LibJS/Runtime/ArrayBuffer.h +++ b/Userland/Libraries/LibJS/Runtime/ArrayBuffer.h @@ -17,11 +17,9 @@ class ArrayBuffer : public Object { public: static ArrayBuffer* create(GlobalObject&, size_t); - static ArrayBuffer* create(GlobalObject&, ByteBuffer&); static ArrayBuffer* create(GlobalObject&, ByteBuffer*); ArrayBuffer(size_t, Object& prototype); - ArrayBuffer(ByteBuffer& buffer, Object& prototype); ArrayBuffer(ByteBuffer* buffer, Object& prototype); virtual ~ArrayBuffer() override; |