зеркало из https://github.com/mozilla/pjs.git
5b760bc860
Hi Norris, Would you mind checking in the attached changes to the debugger. The attached files include the following changes: 1) Use ScriptableObject.getAllIds to obtain an object's properties (if the object extends ScriptableObject). This makes non-enumerable properties visible in the debugger for ScriptableObject's. 2) Made the coding style more consistent with the rest of Rhino. 3) Better support for displaying and stepping through eval-ed code. As Igor suggested to me once, it might be a good idea to define a new interface to similarly support debugging host objects that don't extend ScriptableObject, something like the following: public interface Debuggable extends Scriptable { public Object[] getAllIds(); } The debugger could check for this interface and if a host object chose to implement it, the debugger would be able to display its non-enumerable properties. Chris |
||
---|---|---|
.. | ||
benchmarks | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
src | ||
tests | ||
.cvsignore | ||
Makefile.in | ||
landbranch.pl | ||
makefile.win |