aboutsummaryrefslogtreecommitdiffstats
path: root/components/devtools_traits/lib.rs
diff options
context:
space:
mode:
authorHarrison G <Harrison.Gould16@Gmail.com>2015-08-08 15:08:45 -0400
committerHarrison G <Harrison.Gould16@Gmail.com>2015-08-09 11:45:16 -0400
commite0f007a940b5d0799f904d12ff46fece45736fc9 (patch)
tree638549c48782a26e9cade8b545216f541157c2fa /components/devtools_traits/lib.rs
parent6a8bc8528498c0cbb2e50567d765a989cde2d115 (diff)
downloadservo-e0f007a940b5d0799f904d12ff46fece45736fc9.tar.gz
servo-e0f007a940b5d0799f904d12ff46fece45736fc9.zip
Closes #6724 (Allows object evaluation in devtools)
The purpose of this is to fix how objects were previously evaluated in the developer tools. - Before this, evaluating an object such as the `window` would `panic!` - After this, evaluating an object such as the `window` outputs `[object Window]` A few things to note: - This commit contains `unsafe` code. - This does not contain a test because the developer tools cannot be properly tested until #5971 lands.
Diffstat (limited to 'components/devtools_traits/lib.rs')
-rw-r--r--components/devtools_traits/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/devtools_traits/lib.rs b/components/devtools_traits/lib.rs
index 16218f911dc..599abab609b 100644
--- a/components/devtools_traits/lib.rs
+++ b/components/devtools_traits/lib.rs
@@ -77,7 +77,7 @@ pub enum EvaluateJSReply {
BooleanValue(bool),
NumberValue(f64),
StringValue(String),
- ActorValue(String),
+ ActorValue { class: String, uuid: String },
}
#[derive(Deserialize, Serialize)]