File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ cd ../../
40
40
wasm-snip rewriter/wasm/out/wasm_bg.wasm -o rewriter/wasm/out/wasm_snipped.wasm \
41
41
-p ' oxc_regular_expression::.*' \
42
42
' oxc_parser::ts::types::<impl oxc_parser::ParserImpl>::parse_non_array_type' \
43
- ' oxc_parser::ts::statement::<impl oxc_parser::ParserImpl>::parse_declaration' \
44
43
' oxc_parser::ts::types::<impl oxc_parser::ParserImpl>::parse_ts_import_type' \
45
44
' oxc_parser::ts::types::<impl oxc_parser::ParserImpl>::parse_type_operator_or_higher' \
46
45
' oxc_parser::ts::statement::<impl oxc_parser::ParserImpl>::parse_ts_interface_declaration' \
Original file line number Diff line number Diff line change @@ -5,14 +5,10 @@ import { rewriteUrl } from "../../shared/rewriters/url";
5
5
export default function ( client : ScramjetClient , self : Self ) {
6
6
const Function = client . natives . store [ "Function" ] ;
7
7
8
- self [ config . globals . importfn ] = function ( base : string ) {
9
- return function ( url : string ) {
10
- const resolved = new URL ( url , base ) . href ;
8
+ self [ config . globals . importfn ] = function ( base : string , url : string ) {
9
+ const resolved = new URL ( url , base ) . href ;
11
10
12
- return Function (
13
- `return import("${ rewriteUrl ( resolved , client . meta ) } ")`
14
- ) ( ) ;
15
- } ;
11
+ return Function ( `return import("${ rewriteUrl ( resolved , client . meta ) } ")` ) ( ) ;
16
12
} ;
17
13
18
14
self [ config . globals . metafn ] = function ( base : string ) {
You can’t perform that action at this time.
0 commit comments