From 919a0cd6796f2a9bbfbfddc9fae53c6afa3dbdda Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Fri, 13 Jan 2023 02:06:50 +0100 Subject: fix: make self and window getters only & make getterOnly ignore setting (#17362) --- runtime/js/06_util.js | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/js/06_util.js') diff --git a/runtime/js/06_util.js b/runtime/js/06_util.js index 5b6944ccc..391497ba8 100644 --- a/runtime/js/06_util.js +++ b/runtime/js/06_util.js @@ -131,6 +131,7 @@ function getterOnly(getter) { return { get: getter, + set() {}, enumerable: true, configurable: true, }; -- cgit v1.2.3