1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/Object
Linus Groh ac3e7ef791 LibJS: Fix crash in Object.{freeze,seal}() with indexed properties
This was failing to take two things into account:

- When constructing a PropertyName from a value, it won't automatically
  convert to Type::Number for something like string "0", even though
  that's how things work internally, since indexed properties are stored
  separately. This will be improved in a future patch, it's a footgun
  and should happen automatically.
- Those can't be looked up on the shape, we have to go through the
  indexed properties instead.

Additionally it now operates on the shape or indexed properties directly
as define_property() was overly strict and would throw if a property was
already non-configurable.

Fixes #6469.
2021-04-20 09:38:22 +02:00
..
Object.create.js LibJS: Implement Object.create() 2021-04-10 21:00:04 +02:00
Object.defineProperties.js LibJS: Implement Object.defineProperties() 2021-04-10 21:00:04 +02:00
Object.defineProperty.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.entries.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.freeze.js LibJS: Fix crash in Object.{freeze,seal}() with indexed properties 2021-04-20 09:38:22 +02:00
Object.getOwnPropertyDescriptor.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.getOwnPropertyNames.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.getPrototypeOf.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.is.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.isExtensible.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.isFrozen.js LibJS: Implement Object.isFrozen() and Object.isSealed() 2021-04-07 09:05:01 +02:00
Object.isSealed.js LibJS: Implement Object.isFrozen() and Object.isSealed() 2021-04-07 09:05:01 +02:00
Object.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.keys.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.preventExtensions.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.prototype.constructor.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.prototype.hasOwnProperty.js LibJS: Accept symbol property in ObjectPrototype::hasOwnProperty 2021-04-16 19:22:29 +02:00
Object.prototype.isPrototypeOf.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.prototype.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.prototype.propertyIsEnumerable.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.prototype.toLocaleString.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.prototype.toString.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.seal.js LibJS: Fix crash in Object.{freeze,seal}() with indexed properties 2021-04-20 09:38:22 +02:00
Object.setPrototypeOf.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Object.values.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00