@@ -403,29 +403,39 @@ FS.staticInit();` +
403403 FS . FSStream = /** @constructor */ function ( ) {
404404 this . shared = { } ;
405405 } ;
406- FS . FSStream . prototype = {
406+ FS . FSStream . prototype = { } ;
407+ Object . defineProperties ( FS . FSStream . prototype , {
407408 object : {
409+ /** @this {FS.FSStream} */
408410 get : function ( ) { return this . node ; } ,
411+ /** @this {FS.FSStream} */
409412 set : function ( val ) { this . node = val ; }
410413 } ,
411414 isRead : {
415+ /** @this {FS.FSStream} */
412416 get : function ( ) { return ( this . flags & { { { cDefine ( 'O_ACCMODE' ) } } } ) !== { { { cDefine ( 'O_WRONLY' ) } } } ; }
413417 } ,
414418 isWrite : {
419+ /** @this {FS.FSStream} */
415420 get : function ( ) { return ( this . flags & { { { cDefine ( 'O_ACCMODE' ) } } } ) !== { { { cDefine ( 'O_RDONLY' ) } } } ; }
416421 } ,
417422 isAppend: {
423+ /** @this {FS.FSStream} */
418424 get : function ( ) { return ( this . flags & { { { cDefine ( 'O_APPEND' ) } } } ) ; }
419425 } ,
420426 flags : {
427+ /** @this {FS.FSStream} */
421428 get : function ( ) { return this . shared . flags ; } ,
429+ /** @this {FS.FSStream} */
422430 set : function ( val ) { this . shared . flags = val ; } ,
423431 } ,
424432 position : {
425- get function ( ) { return this . shared . position ; } ,
433+ /** @this {FS.FSStream} */
434+ get : function ( ) { return this . shared . position ; } ,
435+ /** @this {FS.FSStream} */
426436 set : function ( val ) { this . shared . position = val ; } ,
427437 } ,
428- } ;
438+ } ) ;
429439 }
430440 // clone it, so we can return an instance of FSStream
431441 stream = Object . assign ( new FS . FSStream ( ) , stream ) ;
0 commit comments