Here you can find the source of isNullNativeObject(Object val)
private static boolean isNullNativeObject(Object val)
//package com.java2s; //License from project: Apache License import org.mozilla.javascript.Undefined; import org.mozilla.javascript.UniqueTag; public class Main { private static boolean isNullNativeObject(Object val) { if (val instanceof UniqueTag) { if (UniqueTag.NOT_FOUND.equals(val)) { //Tag to mark non-existing values. return true; } else if (UniqueTag.NULL_VALUE.equals(val)) { //Tag to distinguish between uninitialized and null values. return true; }/*from w w w . ja v a 2s. c om*/ } else if (val instanceof Undefined) { // Undefined --> null return true; } return false; } }