nashorn/src/jdk/nashorn/internal/runtime/ScriptingFunctions.java
changeset 16188 d6390b0ea32a
parent 16151 97c1e756ae1e
child 16196 58f6f046bb5e
--- a/nashorn/src/jdk/nashorn/internal/runtime/ScriptingFunctions.java	Tue Jan 22 14:36:28 2013 +0100
+++ b/nashorn/src/jdk/nashorn/internal/runtime/ScriptingFunctions.java	Tue Jan 22 22:07:12 2013 +0530
@@ -88,7 +88,7 @@
         }
 
         if (f == null || !f.isFile()) {
-            typeError(Context.getGlobal(), "not.a.file", ScriptRuntime.safeToString(file));
+            typeError("not.a.file", ScriptRuntime.safeToString(file));
             return UNDEFINED;
         }