Fix 'root' deprecation warning

This would previously be printed in part of the test log:

    (node:1628) [DEP0016] DeprecationWarning: 'root' is deprecated, use 'global'

Apparently, the global object was once called root, and this assignment
didn't have a `var`, so it was actually setting the global object.

I do wonder why that didn't break anything, but this is clearly what was
intended.
This commit is contained in:
Antti Korpi 2018-01-23 22:29:34 +01:00
parent e87b183a8f
commit ed27aa84ff

View file

@ -11,7 +11,7 @@ describe('KillKlient request', function() {
should.not.exist(err);
display = dpy;
X = display.client;
root = display.screen[0].root;
var root = display.screen[0].root;
var eventMask = x11.eventMask.SubstructureNotify;
X.ChangeWindowAttributes(root, { eventMask: eventMask });
done();