File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
javascript/node/selenium-webdriver Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,9 @@ class Listener {
28
28
* @param {boolean } oneshot Whether this listener should only be used once.
29
29
*/
30
30
constructor ( fn , scope , oneshot ) {
31
- Object . defineProperties ( this , {
32
- fn : { value : fn } ,
33
- scope : { value : scope } ,
34
- oneshot : { value : oneshot }
35
- } ) ;
31
+ this . fn = fn ;
32
+ this . scope = scope ;
33
+ this . oneshot = oneshot ;
36
34
}
37
35
}
38
36
Original file line number Diff line number Diff line change @@ -363,9 +363,9 @@ class CommandExecutor {
363
363
this . server_ = new Server ( ) ;
364
364
365
365
this . safari_ = this . server_ . start ( ) . then ( function ( address ) {
366
- var tasks = cleanSession (
366
+ var tasks = /** @type { !Array<!IThenable> } */ ( cleanSession (
367
367
/** @type {!Object } */ (
368
- command . getParameters ( ) [ 'desiredCapabilities' ] ) ) ;
368
+ command . getParameters ( ) [ 'desiredCapabilities' ] ) ) ) ;
369
369
tasks . push (
370
370
findSafariExecutable ( ) ,
371
371
createConnectFile (
You can’t perform that action at this time.
0 commit comments