1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 08:45:06 +00:00
serenity/Libraries/LibJS/Tests/operators
Linus Groh 565a26808d LibJS: Fix crashing exception in Value::ordinary_has_instance()
Two issues:

- throw_exception() with ErrorType::InstanceOfOperatorBadPrototype would
  receive rhs_prototype.to_string_without_side_effects(), which would
  ASSERT_NOT_REACHED() as to_string_without_side_effects() must not be
  called on an empty value. It should (and now does) receive the RHS
  value instead as the message is "'prototype' property of {} is not an
  object".
- Value::instance_of() was missing an exception check after calling
  has_instance_method, to_boolean() on an empty value result would crash
  as well.

Fixes #3930.
2020-11-03 19:14:13 +01:00
..
assignment-operators.js LibJS: Implement logical assignment operators (&&=, ||=, ??=) 2020-10-05 17:57:26 +02:00
binary-bitwise-and.js LibJS: Add tests for bitwise & and ^ 2020-07-23 13:06:49 +02:00
binary-bitwise-left-shift.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
binary-bitwise-or.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
binary-bitwise-right-shift.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
binary-bitwise-unsigned-right-shift.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
binary-bitwise-xor.js LibJS: Add tests for bitwise & and ^ 2020-07-23 13:06:49 +02:00
binary-relational.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
comma-operator.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
delete-basic.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
delete-global-variable.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
delete-globalThis-property-crash.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
in-operator-basic.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
instanceof-basic.js LibJS: Fix crashing exception in Value::ordinary_has_instance() 2020-11-03 19:14:13 +01:00
logical-and.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
logical-expressions-short-circuit.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
logical-nullish-coalescing.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
logical-or.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
modulo-basic.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
ternary-basic.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
typeof-basic.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00
void-basic.js LibJS: Indent tests with 4 spaces instead of 2 2020-07-06 23:40:35 +02:00