public static Object getProperty ( Scriptable obj , Symbol key ) { Scriptable start = obj ; Object result ; do { result = ensureSymbolScriptable ( obj ) . get ( key , start ) ; if ( result != Scriptable . NOT_FOUND ) break ; obj = obj . getPrototype ( ) ; } while ( obj != null ) ; return result ; }
This is a version of getProperty that works with Symbols .