From 7dd070df44e07203a4f047160845337bebf4967a Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 31 Jul 2020 18:48:32 -0700 Subject: [PATCH] zjsunit: Return true from set handler for window Proxy. Signed-off-by: Anders Kaseorg --- frontend_tests/zjsunit/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js index 6cfdb072c0..f31afc9c3d 100644 --- a/frontend_tests/zjsunit/index.js +++ b/frontend_tests/zjsunit/index.js @@ -46,7 +46,10 @@ global.stub_out_jquery = namespace.stub_out_jquery; global.with_overrides = namespace.with_overrides; global.window = new Proxy(global, { - set: (obj, prop, value) => namespace.set_global(prop, value), + set: (obj, prop, value) => { + namespace.set_global(prop, value); + return true; + }, }); global.to_$ = () => window;