Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllows object evaluation in devtools -- Closes #6724 #7101
Conversation
highfive
commented
Aug 9, 2015
|
r? @jdm |
|
Great work @HarryLovesCode! A few small changes and this should be ready to merge :) Reviewed 5 of 5 files at r1. components/devtools/actors/object.rs, line 23 [r1] (raw file): components/devtools/lib.rs, line 47 [r1] (raw file): components/devtools/lib.rs, line 79 [r1] (raw file): components/devtools/lib.rs, line 222 [r1] (raw file): components/devtools/lib.rs, line 262 [r1] (raw file): components/devtools_traits/lib.rs, line 80 [r1] (raw file): components/script/devtools.rs, line 27 [r1] (raw file): components/script/devtools.rs, line 47 [r1] (raw file): components/script/devtools.rs, line 48 [r1] (raw file): components/script/devtools.rs, line 50 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: 4 of 5 files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. components/devtools/lib.rs, line 222 [r1] (raw file): components/devtools/lib.rs, line 262 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: 4 of 5 files reviewed at latest revision, all discussions resolved, all commit checks successful. components/script/devtools.rs, line 50 [r1] (raw file): Comments from the review on Reviewable.io |
|
You are correct. Reviewed 1 of 1 files at r2. Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. components/script/devtools.rs, line 50 [r1] (raw file): let obj = RootedObject::new(cx, rval.get().to_object());
let class_name = ObjectClassName(cx, obj.handle());Comments from the review on Reviewable.io |
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.
|
ping @jdm |
|
@bors-servo: r+ Reviewed 5 of 5 files at r3. Comments from the review on Reviewable.io |
|
|
Allows object evaluation in devtools -- Closes #6724 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. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7101) <!-- Reviewable:end -->
|
|
|
The |
|
@bors-servo retry
|
Allows object evaluation in devtools -- Closes #6724 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. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7101) <!-- Reviewable:end -->
HarryLovesCode commentedAug 8, 2015
The purpose of this is to fix how objects were previously evaluated in
the developer tools.
windowwouldpanic!windowoutputs[object Window]A few things to note:
unsafecode.