Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enables console autocompletion

  • Loading branch information...
commit 543a422a696c62ed4b7db80a80de16b350db0a1f 1 parent ec5057d
@c4milo authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/runtime.js
View
8 lib/runtime.js
@@ -1,5 +1,6 @@
var helpers = require('./helpers');
-
+//TODO inject modifications to console.log in eval context
+//so that console.log operations in the browser can show up on it too.
//Code was based on /WebKit/Source/WebCore/inspector/InjectedScriptSource.js
var _objectId = 0;
var RemoteObject = function(object) {
@@ -29,7 +30,7 @@ var RemoteObject = function(object) {
if (subtype) {
this.subtype = subtype;
}
- this.className = '';
+ this.className = object.constructor || object.name || '';
this.description = helpers.describe(object);
this.value = helpers.decycle(object);
};
@@ -233,13 +234,12 @@ function RuntimeAgent() {
}
return sendResult({
- result: {
result: {
type: 'object',
value: func.apply(object, resolvedArgs)
},
+ //result: this.wrapObject(func.apply(object, resolvedArgs)),
wasThrown: false
- }
});
} catch (e) {
return sendResult(this.createThrownValue(e));
Please sign in to comment.
Something went wrong with that request. Please try again.