File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -193,9 +193,11 @@ contract:
193
193
194
194
### Filesystem Importer
195
195
196
- A * filesystem importer* is an [ importer] ( #importer ) with an associated absolute
197
- ` file: ` URL named ` base ` . When a filesystem importer is invoked with a string
198
- named ` string ` :
196
+ A * filesystem importer* is an [ importer] ( #importer ) with an optional associated
197
+ absolute ` file: ` URL named ` base ` . When a filesystem importer is invoked with a
198
+ string named ` string ` :
199
+
200
+ * If ` base ` is null and ` url ` doesn't begin with ` "file:" ` , return null.
199
201
200
202
* Let ` url ` be the result of [ parsing ` string ` as a URL] [ parsing a URL ] with
201
203
` base ` as the base URL. If this returns a failure, throw that failure.
Original file line number Diff line number Diff line change @@ -120,10 +120,7 @@ a string.
120
120
121
121
* Let ` url ` be the absolute ` file: ` URL corresponding to ` path ` .
122
122
123
- * Let ` importer ` be a [ filesystem importer] with an arbitrary ` base ` .
124
-
125
- > This importer will only ever be passed absolute URLs, so its base won't
126
- > matter.
123
+ * Let ` importer ` be a [ filesystem importer] with a null ` base ` .
127
124
128
125
* Return the result of [ compiling] ( #compiling-a-string ) ` text ` with ` syntax ` ,
129
126
` url ` , ` importer ` , ` importers ` , and ` load-paths ` .
You can’t perform that action at this time.
0 commit comments