mirror of https://github.com/zulip/zulip.git
zjsunit: Return true from set handler for window Proxy.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
4f930688cf
commit
7dd070df44
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue