JDK-8049086.js.EXPECTED revision 1029:f2771da9af07
1println is java method? true 2println is script function? false 3getProperty is java method? true 4getProperty is script function? false 5File is java method? true 6File is script function? false 7eval is script function? true 8eval is java method? false 9hello is script function? true 10hello is java method? false 11out is script object? false 12System is script object? false 13Object is script object? true 14{} is script object? true 15/foo/ is script object? true 16java.lang.String is java function? true 17java.lang.Runnable instance is java function? true 18eval is java function? false 19println is java function? true 20getProperty is java function? true 21callable JSObject is function? true 22Non callable JSObject is function? false 23lock is java object? true 24eval is java object? false 25{} is java object? false 26/foo/ is java object? false 27[] is java object? false 28java.io.File is java object? true 29about to wait.. 30new thread 31notifying.. 32done waiting! 33about to wait.. 34new thread 35notifying.. 36done waiting! 37TypeError: 232 is not a function 38TypeError: 232 is not a function 39TypeError: [object Object] is not a function 40TypeError: [object Object] is not a function 41TypeError: [object Array] is not a function 42TypeError: [object Array] is not a function 43TypeError: hello is not a function 44TypeError: hello is not a function 45TypeError: null is not a function 46TypeError: null is not a function 47TypeError: undefined is not a function 48TypeError: undefined is not a function 49