-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
RequestA cool feature request for the libraryA cool feature request for the library
Milestone
Description
There is unable to extend classes
var robot = require('robot-js');
class Window extends robot.Window {
constructor(hwnd) {
super(hwnd);
this.newProperty = 'hello';
}
newFeature(){}
}
var wnd = new Window();
wnd.newProperty; // 'hello' !!! this is weird
wnd.newFeature(); // TypeError: newFeature in not a function
wnd instanceof Window // false
wnd instanceof robot.Window // true
:(
bgoscinski
Metadata
Metadata
Assignees
Labels
RequestA cool feature request for the libraryA cool feature request for the library