Skip to content

Commit b44ced4

Browse files
committed
Testing javaNull instanceof Object.
1 parent dd8a7fd commit b44ced4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2024, 2024, Oracle and/or its affiliates. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
5+
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6+
*/
7+
8+
load("assert.js");
9+
10+
var javaNull = new java.util.ArrayDeque().peek();
11+
12+
assertFalse(javaNull instanceof Object);
13+
assertFalse(javaNull instanceof new Proxy(Object, {}));

0 commit comments

Comments
 (0)