Skip to content

Commit

Permalink
Revert "Remove usage of internal Nashorn methods (fixes #74)"
Browse files Browse the repository at this point in the history
This reverts commit 27b3b3a
  • Loading branch information
Sten Roger Sandvik committed Sep 25, 2017
1 parent 27b3b3a commit 7d38e8b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -3,12 +3,13 @@
import java.util.Date;

import jdk.nashorn.api.scripting.ScriptObjectMirror;
import jdk.nashorn.internal.runtime.ScriptRuntime;

public final class NashornHelper
{
public static boolean isUndefined( final Object value )
{
return ( value == null ) || ( value.getClass().getSimpleName().equalsIgnoreCase( "undefined" ) );
return ( value == null ) || ( value == ScriptRuntime.UNDEFINED );
}

public static boolean isDateType( final Object value )
Expand Down

0 comments on commit 7d38e8b

Please sign in to comment.