mirror of
https://github.com/servo/servo.git
synced 2025-07-28 09:40:33 +01:00
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.
This commit is contained in:
parent
6a8bc85284
commit
e0f007a940
5 changed files with 71 additions and 11 deletions
|
@ -77,7 +77,7 @@ pub enum EvaluateJSReply {
|
|||
BooleanValue(bool),
|
||||
NumberValue(f64),
|
||||
StringValue(String),
|
||||
ActorValue(String),
|
||||
ActorValue { class: String, uuid: String },
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue