src/jdk/nashorn/internal/runtime/JSType.java
Print this page
*** 26,35 ****
--- 26,36 ----
package jdk.nashorn.internal.runtime;
import static jdk.nashorn.internal.codegen.CompilerConstants.staticCall;
import static jdk.nashorn.internal.runtime.ECMAErrors.typeError;
+ import java.util.Locale;
import jdk.internal.dynalink.beans.StaticClass;
import jdk.nashorn.internal.codegen.CompilerConstants.Call;
import jdk.nashorn.internal.parser.Lexer;
/**
*** 109,119 ****
*
* @return type name for this type
*/
public final String typeName() {
// For NULL, "object" has to be returned!
! return ((this == NULL) ? OBJECT : this).name().toLowerCase();
}
/**
* Return the JSType for a given object
*
--- 110,120 ----
*
* @return type name for this type
*/
public final String typeName() {
// For NULL, "object" has to be returned!
! return ((this == NULL) ? OBJECT : this).name().toLowerCase(Locale.ENGLISH);
}
/**
* Return the JSType for a given object
*