test/script/basic/NASHORN-397.js

Print this page

        

*** 33,47 **** if (typeof (5).x !== 'number') { fail("typeof(5).x is not 'number'"); } ! // It is function because PrintStream implements Closeable, which is ! // marked with @FunctionalInterface. Yes, this means calling a stream ! // like "stream()" closes it. ! if (typeof (java.lang.System.out) != 'function') { ! fail("typeof java.lang.System.out is not 'object'"); } if (typeof (java.lang.Math.PI) != 'number') { fail("typeof java.lang.Math.PI is not 'number'"); } --- 33,44 ---- if (typeof (5).x !== 'number') { fail("typeof(5).x is not 'number'"); } ! if (typeof (java.net.Proxy.NO_PROXY) != 'object') { ! fail("typeof java.net.Proxy.NO_PROXY is not 'object'"); } if (typeof (java.lang.Math.PI) != 'number') { fail("typeof java.lang.Math.PI is not 'number'"); }