@@ -931,7 +931,7 @@ impl SourceMapProcessor {
931
931
// If we don't have a sourcemap, it's not safe to inject the code snippet at the beginning,
932
932
// because that would throw off all the mappings. Instead, inject the snippet at the very end.
933
933
// This isn't ideal, but it's the best we can do in this case.
934
- inject:: fixup_js_file_end ( Arc :: make_mut ( & mut source_file. contents ) , debug_id)
934
+ inject:: inject_at_end ( Arc :: make_mut ( & mut source_file. contents ) , debug_id)
935
935
. context ( format ! ( "Failed to process {}" , source_file. path. display( ) ) ) ?;
936
936
debug_id
937
937
}
@@ -981,7 +981,7 @@ impl SourceMapProcessor {
981
981
source_file_contents. extend ( injected. as_bytes ( ) ) ;
982
982
} else {
983
983
// We can't adjust the section offset rows, so we have to inject at the end
984
- inject:: fixup_js_file_end ( source_file_contents, debug_id)
984
+ inject:: inject_at_end ( source_file_contents, debug_id)
985
985
. with_context ( || {
986
986
format ! (
987
987
"Failed to inject debug id into {}" ,
@@ -1079,13 +1079,13 @@ impl SourceMapProcessor {
1079
1079
source_file_contents. extend ( injected. as_bytes ( ) ) ;
1080
1080
} else {
1081
1081
// We can't adjust the section offset rows, so we have to inject at the end
1082
- inject:: fixup_js_file_end ( source_file_contents, debug_id)
1082
+ inject:: inject_at_end ( source_file_contents, debug_id)
1083
1083
. with_context ( || {
1084
- format ! (
1085
- "Failed to inject debug id into {}" ,
1086
- source_file. path. display( )
1087
- )
1088
- } ) ?;
1084
+ format ! (
1085
+ "Failed to inject debug id into {}" ,
1086
+ source_file. path. display( )
1087
+ )
1088
+ } ) ?;
1089
1089
}
1090
1090
}
1091
1091
}
@@ -1131,7 +1131,7 @@ impl SourceMapProcessor {
1131
1131
// If we don't have a sourcemap, it's not safe to inject the code snippet at the beginning,
1132
1132
// because that would throw off all the mappings. Instead, inject the snippet at the very end.
1133
1133
// This isn't ideal, but it's the best we can do in this case.
1134
- inject:: fixup_js_file_end (
1134
+ inject:: inject_at_end (
1135
1135
Arc :: make_mut ( & mut source_file. contents ) ,
1136
1136
debug_id,
1137
1137
)
0 commit comments