Skip to content

Commit

Permalink
added __proto__ to variable tree, moved debugger.js and session.js to…
Browse files Browse the repository at this point in the history
… lib
  • Loading branch information
dannycoates committed Aug 25, 2010
1 parent c7d82ac commit 390020a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/inspector.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

var sys = require('sys'),
session = require('./session');
session = require('../lib/session');

var options = {};

Expand Down
16 changes: 15 additions & 1 deletion front-end/node/InspectorFrontendHostStub.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,21 @@ WebInspector.InspectorFrontendHostStub = function()
function refToProperties(ref) {
if (ref) {
if (ref.properties) {
return ref.properties.map(_property);
var props = ref.properties.map(_property);
if(ref.protoObject) {
props.push(
{
name:'__proto__'
, value:
{
description: ref.protoObject.className
, hasChildren: true
, injectedScriptId: ref.protoObject.ref
, type: ref.protoObject.type
}
});
}
return props;
}
else {
return [_property(ref)];
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions bin/session.js → lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var http = require('http'),
events = require('events'),
sys = require('sys'),
path = require('path'),
ws = require('../lib/ws'),
paperboy = require('../lib/paperboy'),
ws = require('./ws'),
paperboy = require('./paperboy'),
spawn = require('child_process').spawn,
debugr = require('./debugger');

Expand Down

0 comments on commit 390020a

Please sign in to comment.