Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.dynjs.runtime.builtins.types.string.prototype;
 
 
 public class ToUpperCase extends AbstractNativeFunction {
 
    public ToUpperCase(GlobalObject globalObject) {
        super(globalObject);
    }
    @Override
    public Object call(ExecutionContext contextObject selfObject... args) {
        // 15.5.4.18
        Types.checkObjectCoercible(contextself);
        String s = Types.toString(contextself);
        return s.toUpperCase();
    }
New to GrepCode? Check out our FAQ X