zjsunit: Return true from set handler for window Proxy.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-07-31 18:48:32 -07:00 committed by Tim Abbott
parent 4f930688cf
commit 7dd070df44
1 changed files with 4 additions and 1 deletions

View File

@ -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;