This repository was archived by the owner on Jul 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ module.exports = function (grunt) {
25
25
'src/wrapper-start.js' ,
26
26
'src/loader.js' ,
27
27
'src/dynamic-only.js' ,
28
- 'src/url.js' ,
28
+ 'src/url-polyfill .js' ,
29
29
'src/system.js' ,
30
30
'src/wrapper-end.js'
31
31
] ,
@@ -35,7 +35,7 @@ module.exports = function (grunt) {
35
35
'src/loader.js' ,
36
36
'src/declarative.js' ,
37
37
'src/transpiler.js' ,
38
- 'src/url.js' ,
38
+ 'src/url-polyfill .js' ,
39
39
'src/system.js' ,
40
40
'src/module-tag.js' ,
41
41
'src/wrapper-end.js'
Original file line number Diff line number Diff line change 189
189
if ( isBrowser )
190
190
outPath = outPath . replace ( / # / g, '%23' ) ;
191
191
192
- return new URLUtils ( outPath , baseURLCache [ this . baseURL ] = baseURLCache [ this . baseURL ] || new URLUtils ( this . baseURL ) ) . href ;
192
+ return new URL ( outPath , baseURLCache [ this . baseURL ] = baseURLCache [ this . baseURL ] || new URL ( this . baseURL ) ) . href ;
193
193
} ;
194
194
195
195
SystemLoader . prototype . fetch = function ( load ) {
Original file line number Diff line number Diff line change 1
1
// from https://gist.github.com/Yaffle/1088850
2
- function URLUtils ( url , baseURL ) {
2
+ function URL ( url , baseURL ) {
3
3
if ( typeof url != 'string' )
4
4
throw new TypeError ( 'URL must be a string' ) ;
5
5
var m = String ( url ) . replace ( / ^ \s + | \s + $ / g, "" ) . match ( / ^ ( [ ^ : \/ ? # ] + : ) ? (?: \/ \/ (?: ( [ ^ : @ \/ ? # ] * ) (?: : ( [ ^ : @ \/ ? # ] * ) ) ? @ ) ? ( ( [ ^ : \/ ? # ] * ) (?: : ( \d * ) ) ? ) ) ? ( [ ^ ? # ] * ) ( \? [ ^ # ] * ) ? ( # [ \s \S ] * ) ? / ) ;
16
16
var search = m [ 8 ] || "" ;
17
17
var hash = m [ 9 ] || "" ;
18
18
if ( baseURL !== undefined ) {
19
- var base = baseURL instanceof URLUtils ? baseURL : new URLUtils ( baseURL ) ;
19
+ var base = baseURL instanceof URL ? baseURL : new URL ( baseURL ) ;
20
20
var flag = protocol === "" && host === "" && username === "" ;
21
21
if ( flag && pathname === "" && search === "" ) {
22
22
search = base . search ;
You can’t perform that action at this time.
0 commit comments