mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Ignore eager JS evaluation in devtools.
This commit is contained in:
parent
3dfec95268
commit
b53ce5c79a
1 changed files with 7 additions and 0 deletions
|
@ -443,6 +443,13 @@ impl Actor for ConsoleActor {
|
|||
// Emit an eager reply so that the client starts listening
|
||||
// for an async event with the resultID
|
||||
stream.write_json_packet(&early_reply);
|
||||
|
||||
if msg.get("eager").and_then(|v| v.as_bool()).unwrap_or(false) {
|
||||
// We don't support the side-effect free evaluation that eager evalaution
|
||||
// really needs.
|
||||
return Ok(ActorMessageStatus::Processed);
|
||||
}
|
||||
|
||||
let reply = self.evaluateJS(®istry, &msg).unwrap();
|
||||
let msg = EvaluateJSEvent {
|
||||
from: self.name(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue