Merge pull request #9187 from dotCooCoo/fix/js-dollar-stack-script-frame

Scripts: $.stack starts with a line that names the running script
This commit is contained in:
BFlat authored and GitHub committed 2026-11-24 16:08:08 +07:00
commit cf2c4ae3f7
11 files changed
+76 -17

No files matched your search

+1
View File
@@ -2117,6 +2117,7 @@ impl Session {
Ok(expanded) => {
*host.script_map.borrow_mut() = expanded.map;
realm.set_strict_writes(expanded.strict == Some(true));
realm.set_script_name(Some(host.name.to_string()));
if fresh {
let l = link.clone();
realm.set_source_locator(Rc::new(move |tag, line| match current(&l) {