rginda%netscape.com 32c4dca990 - venkman only -
crop view titles.
hide js components when "Exclude Browser Files" is enabled.
fix strict warnings.
use jsds to get parent instead of __parent__ to avoid warning.
make sure script is valid before trying to pretty print it.
don't trace errors from chrome urls if "Exclude Browser Files" is enabled.
add a source code colorization limit, default to 1500 lines.
add "Include ECMA Properties" and "Include Functions" options in the Locals and Watch views.
fix "Files" node in the Open Windows view.
Don't get property counts in the Locals and Watch views, because it takes too long.
don't print the hook error, of the hook in question was the display hook, to avoid an infinite loop.
Fix logic to reuse tabs once max-tab limit has been reached.
show an error when an unknown pref or pref pattern is passed to the /pref command.


git-svn-id: svn://10.0.0.236/trunk@128805 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 04:27:32 +00:00

71 lines
2.1 KiB
JavaScript

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS 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.
*
* The Original Code is The JavaScript Debugger
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation
* Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation.
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the MPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* Contributor(s):
* Robert Ginda, <rginda@netscape.com>, original author
*
*/
console.doEval =
function con_eval(__s, __o)
{
var __ex;
var rv;
try
{
if (__o)
{
rv = eval(__s, __o);
}
else
{
rv = eval(__s);
}
}
catch (__ex)
{
dd ("doEval caught: " + __ex);
if (__ex && typeof __ex == "object" && "fileName" in __ex &&
__ex.fileName.search (/venkman-eval.js$/) != -1)
{
__ex.fileName = MSG_VAL_CONSOLE;
__ex.lineNumber = console.evalCount;
}
++console.evalCount;
throw __ex;
}
++console.evalCount;
return rv;
}