added __proto__ to variable tree, moved debugger.js and session.js to lib
This commit is contained in:
Родитель
c7d82ac096
Коммит
390020a5f1
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
var sys = require('sys'),
|
||||
session = require('./session');
|
||||
session = require('../lib/session');
|
||||
|
||||
var options = {};
|
||||
|
||||
|
|
|
@ -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)];
|
||||
|
|
|
@ -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');
|
||||
|
Загрузка…
Ссылка в новой задаче