mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 15:40:02 -04:00
rewrite location properly
This commit is contained in:
parent
ad8c6aec66
commit
39f11ef812
2 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ impl<'a> Visit<'a> for Rewriter {
|
|||
if s.property.name.to_string() == "location" {
|
||||
self.jschanges.push(JsChange::GenericChange {
|
||||
span: s.property.span,
|
||||
text: "_location".to_string(),
|
||||
text: "$s(location)".to_string(),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue