mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
script: Tell SpiderMonkey whether scripts are inline
Co-authored-by: atbrakhi <atbrakhi@igalia.com> Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
048d0b0538
commit
615c9ec013
8 changed files with 41 additions and 8 deletions
|
@ -12,6 +12,7 @@ use devtools_traits::{
|
|||
NodeInfo, NodeStyle, RuleModification, TimelineMarker, TimelineMarkerType,
|
||||
};
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use js::glue::IntroductionType;
|
||||
use js::jsval::UndefinedValue;
|
||||
use js::rust::ToString;
|
||||
use servo_config::pref;
|
||||
|
@ -65,6 +66,7 @@ pub(crate) fn handle_evaluate_js(
|
|||
ScriptFetchOptions::default_classic_script(global),
|
||||
global.api_base_url(),
|
||||
can_gc,
|
||||
IntroductionType::Undefined,
|
||||
);
|
||||
|
||||
if rval.is_undefined() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue