From 43859d47e14b1e4b484b9534fd4469f270032494 Mon Sep 17 00:00:00 2001
From: Alexey Shvayka
Date: Mon, 11 Sep 2023 07:04:16 +0100
Subject: [PATCH] Align window.opener setter reconfiguration behavior
In particular, if it fails to reconfigure the property, it should throw a TypeError. Previously it was specified to return a boolean, which was clearly incorrect.
---
source | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/source b/source
index 9dc10de3700..e4aed77eb44 100644
--- a/source
+++ b/source
@@ -2972,6 +2972,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
The CreateBuiltinFunction abstract operation
The CreateByteDataBlock abstract operation
The CreateDataProperty abstract operation
+ The DefinePropertyOrThrow abstract operation
The DetachArrayBuffer abstract operation
The EnumerableOwnProperties abstract operation
The FinishDynamicImport abstract operation
@@ -87723,8 +87724,8 @@ dictionary WindowPostMessageOptions : StructuredSeri
context is non-null, then set this's browsing
context's opener browsing context to null.
- If the given value is non-null, then return ?
- OrdinaryDefineOwnProperty(this, "opener
", {
+
If the given value is non-null, then perform ?
+ DefinePropertyOrThrow(this, "opener
", {
[[Value]]: the given value, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true
}).