public static double version ( Context cx , Scriptable thisObj , Object [ ] args , Function funObj ) { double result = cx . getLanguageVersion ( ) ; if ( args . length > 0 ) { double d = Context . toNumber ( args [ 0 ] ) ; cx . setLanguageVersion ( ( int ) d ) ; } return result ; }
Get and set the language version .