Shannon Booth
5d0fb4bac3
LibJS: Do not inherit TypedArray constructors from TypedArrayConstructor
...
In: https://tc39.es/ecma262/#sec-%typedarray%-intrinsic-object
The spec says:
> is a constructor function object that all of the TypedArray
> constructor objects inherit from.
From what I understand from this, it effectively just means is that the
prototype for the constructor should simply be set to
TypedArrayConstructor. We _were_ doing that, but also inheriting from
it in C++.
This meant we were invoking TypedArrayConstructor::initialize for each
of the typed arrays. This is not actually what we want, since it means
that the 'of' and 'from' functions were being defined as native
properties in both the concrete typed array (e.g Uint8Array), and the
abstract TypedArray. Instead, the properties should only be defined and
inherited from the abstract TypedArray class.
Diff Tests:
+4 ✅ -4 ❌
Co-Authored-By: Andreas Kling <kling@serenityos.org >
2023-12-27 10:57:16 -05:00
..
2023-12-23 23:02:10 +01:00
2023-12-23 23:02:10 +01:00
2023-12-23 20:41:07 +01:00
2023-12-26 12:07:50 -05:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-30 09:51:46 -05:00
2023-11-30 09:51:46 -05:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-29 09:48:18 +01:00
2023-12-26 11:16:10 +01:00
2023-12-26 11:16:10 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 11:16:10 +01:00
2023-12-26 11:16:10 +01:00
2023-12-23 20:22:42 -05:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-09 00:20:25 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-12-07 14:06:34 +01:00
2023-12-07 14:06:34 +01:00
2023-12-23 23:02:10 +01:00
2023-12-07 14:06:34 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-12-13 11:19:13 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-13 11:19:13 +01:00
2023-11-29 09:48:18 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 11:16:10 +01:00
2023-11-30 09:51:46 -05:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-29 09:48:18 +01:00
2023-12-26 11:16:10 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 11:16:10 +01:00
2023-12-26 11:16:10 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-12-23 20:41:07 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2023-11-07 11:33:04 +01:00
2023-11-07 11:33:04 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 11:16:10 +01:00
2023-12-13 11:19:13 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-29 09:48:18 +01:00
2023-12-17 18:25:10 +03:30
2023-11-29 09:48:18 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-13 11:19:13 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-10 08:22:44 +01:00
2023-11-10 08:22:44 +01:00
2023-12-08 00:54:05 +01:00
2023-12-08 00:54:05 +01:00
2023-12-08 00:54:05 +01:00
2023-12-07 14:06:34 +01:00
2023-12-07 14:06:34 +01:00
2023-11-19 12:10:31 +01:00
2023-12-07 14:06:34 +01:00
2023-12-07 14:06:34 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-07 14:06:34 +01:00
2023-11-19 12:10:31 +01:00
2023-11-29 09:48:18 +01:00
2023-11-29 09:48:18 +01:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 12:07:50 -05:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-01 13:01:26 +01:00
2023-12-01 13:01:26 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-29 09:48:18 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-12-11 20:36:15 +01:00
2023-12-26 12:07:50 -05:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 12:07:50 -05:00
2023-11-19 12:10:31 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-10-07 07:13:52 +02:00
2023-12-23 20:41:07 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-29 09:48:18 +01:00
2023-11-29 09:48:18 +01:00
2023-12-01 13:01:26 +01:00
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-10-07 07:13:52 +02:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2023-11-29 09:48:18 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-12-16 14:25:58 +01:00
2023-12-16 14:25:58 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-23 23:02:10 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-27 10:57:16 -05:00
2023-12-27 10:57:16 -05:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-12-17 18:25:10 +03:30
2023-12-23 20:41:07 +01:00
2023-12-19 09:21:55 -07:00
2023-10-07 07:13:52 +02:00
2023-12-17 18:25:10 +03:30
2023-12-26 11:16:10 +01:00
2023-12-26 11:16:10 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-12-17 18:25:10 +03:30
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-19 12:10:31 +01:00
2023-11-29 09:48:18 +01:00
2023-11-29 09:48:18 +01:00