aboutsummaryrefslogtreecommitdiff
path: root/test/script/basic/NASHORN-397.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/script/basic/NASHORN-397.js')
-rw-r--r--test/script/basic/NASHORN-397.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/script/basic/NASHORN-397.js b/test/script/basic/NASHORN-397.js
index e9484bc0..63e7b3ac 100644
--- a/test/script/basic/NASHORN-397.js
+++ b/test/script/basic/NASHORN-397.js
@@ -35,11 +35,8 @@ 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.net.Proxy.NO_PROXY) != 'object') {
+ fail("typeof java.net.Proxy.NO_PROXY is not 'object'");
}
if (typeof (java.lang.Math.PI) != 'number') {