diff --git a/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java b/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java
index <HASH>..<HASH> 100644
--- a/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java
+++ b/testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java
@@ -195,13 +195,15 @@ public class Test262SuiteTest {
             }
 
             String str = testCase.source;
+            int line = 1;
             if (useStrict) {
                 str = "\"use strict\";\n" + str;
+                line--;
             }
 
             boolean failedEarly = true;
             try {
-                Script caseScript = cx.compileString(str, testFilePath, 0, null);
+                Script caseScript = cx.compileString(str, testFilePath, line, null);
 
                 failedEarly = false; // not after this line
                 caseScript.exec(cx, scope);
Print original line number of file in test<I>.