--- old/src/jdk/nashorn/internal/runtime/ScriptRuntime.java 2014-03-17 14:05:59.764504554 +0530 +++ new/src/jdk/nashorn/internal/runtime/ScriptRuntime.java 2014-03-17 14:05:59.636503923 +0530 @@ -474,7 +474,7 @@ * @return {@link WithObject} that is the new scope */ public static ScriptObject openWith(final ScriptObject scope, final Object expression) { - final ScriptObject global = Context.getGlobalTrusted(); + final Global global = Context.getGlobal(); if (expression == UNDEFINED) { throw typeError(global, "cant.apply.with.to.undefined"); } else if (expression == null) {