This commit is contained in:
nboyd%atg.com 2001-04-09 23:43:19 +00:00
parent 7fd9e073e2
commit 517b2d35e4
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
@ -1760,6 +1760,8 @@ public final class Context {
static String getSourcePositionFromStack(int[] linep) {
Context cx = getCurrentContext();
if (cx == null)
return null;
if (cx.interpreterLine > 0 && cx.interpreterSourceFile != null) {
linep[0] = cx.interpreterLine;
return cx.interpreterSourceFile;

View File

@ -6,7 +6,7 @@
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
@ -1760,6 +1760,8 @@ public final class Context {
static String getSourcePositionFromStack(int[] linep) {
Context cx = getCurrentContext();
if (cx == null)
return null;
if (cx.interpreterLine > 0 && cx.interpreterSourceFile != null) {
linep[0] = cx.interpreterLine;
return cx.interpreterSourceFile;