Reviewed by Yury Semikhatsky.
Web Inspector: Web Inspector: we don't need to transfer objectId and hasChildren for primitive values.
https://bugs.webkit.org/show_bug.cgi?id=55998
* inspector/protocol/console-agent-expected.txt:
* inspector/protocol/runtime-agent-expected.txt:
2011-03-09 Ilya Tikhonovsky <loislo@chromium.org>
Reviewed by Yury Semikhatsky.
Web Inspector: Web Inspector: we don't need to transfer objectId and hasChildren for primitive values.
https://bugs.webkit.org/show_bug.cgi?id=55998
* inspector/InjectedScriptSource.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@80630
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-03-09 Ilya Tikhonovsky <loislo@chromium.org>
+
+ Reviewed by Yury Semikhatsky.
+
+ Web Inspector: Web Inspector: we don't need to transfer objectId and hasChildren for primitive values.
+ https://bugs.webkit.org/show_bug.cgi?id=55998
+
+ * inspector/protocol/console-agent-expected.txt:
+ * inspector/protocol/runtime-agent-expected.txt:
+
2011-03-09 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Yury Semikhatsky.
message : "test"
parameters : {
0 : {
- objectId : null
type : "string"
description : "test"
- hasChildren : false
}
}
stackTrace : <object>
seq : <number>
body : {
result : {
- objectId : null
type : "undefined"
description : "undefined"
- hasChildren : false
}
}
}
injectedScriptId : <number>
id : <number>
}
+ hasChildren : true
type : "object"
description : "TestObject"
- hasChildren : true
}
}
}
seq : <number>
body : {
result : {
- objectId : null
type : "undefined"
description : "undefined"
- hasChildren : false
}
}
}
0 : {
name : "assignedByEvaluateOn"
value : {
- objectId : null
type : "string"
description : "evaluateOn function works fine"
- hasChildren : false
}
}
1 : {
name : "assignedBySetPropertyValue"
value : {
- objectId : null
type : "boolean"
description : "true"
- hasChildren : false
}
}
2 : {
injectedScriptId : <number>
id : <number>
}
+ hasChildren : true
type : "object"
description : "TestObject"
- hasChildren : true
}
}
}
+2011-03-09 Ilya Tikhonovsky <loislo@chromium.org>
+
+ Reviewed by Yury Semikhatsky.
+
+ Web Inspector: Web Inspector: we don't need to transfer objectId and hasChildren for primitive values.
+ https://bugs.webkit.org/show_bug.cgi?id=55998
+
+ * inspector/InjectedScriptSource.js:
+
2011-03-09 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Yury Semikhatsky.
InjectedScript.RemoteObject = function(objectId, type, description, hasChildren)
{
- this.objectId = objectId;
+ if (objectId) {
+ this.objectId = objectId;
+ this.hasChildren = hasChildren;
+ }
this.type = type;
this.description = description;
- this.hasChildren = hasChildren;
}
InjectedScript.RemoteObject.fromException = function(e)