Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not check over parameters when finding possible star in default ex…
…ported function (#3522)
- Loading branch information
1 parent
7cf6f98
commit f9a6042
Showing
19 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
description: 'handles slashes in function parameters and correctly inserts missing ids' | ||
}; |
9 changes: 9 additions & 0 deletions
9
test/form/samples/slash-in-function-parameters/_expected/amd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
define(function () { 'use strict'; | ||
|
||
class someClass {} | ||
|
||
function someFunction (text = '/') {} | ||
|
||
console.log(someClass, someFunction); | ||
|
||
}); |
7 changes: 7 additions & 0 deletions
7
test/form/samples/slash-in-function-parameters/_expected/cjs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
class someClass {} | ||
|
||
function someFunction (text = '/') {} | ||
|
||
console.log(someClass, someFunction); |
5 changes: 5 additions & 0 deletions
5
test/form/samples/slash-in-function-parameters/_expected/es.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class someClass {} | ||
|
||
function someFunction (text = '/') {} | ||
|
||
console.log(someClass, someFunction); |
10 changes: 10 additions & 0 deletions
10
test/form/samples/slash-in-function-parameters/_expected/iife.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(function () { | ||
'use strict'; | ||
|
||
class someClass {} | ||
|
||
function someFunction (text = '/') {} | ||
|
||
console.log(someClass, someFunction); | ||
|
||
}()); |
14 changes: 14 additions & 0 deletions
14
test/form/samples/slash-in-function-parameters/_expected/system.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
System.register([], function () { | ||
'use strict'; | ||
return { | ||
execute: function () { | ||
|
||
class someClass {} | ||
|
||
function someFunction (text = '/') {} | ||
|
||
console.log(someClass, someFunction); | ||
|
||
} | ||
}; | ||
}); |
12 changes: 12 additions & 0 deletions
12
test/form/samples/slash-in-function-parameters/_expected/umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(function (factory) { | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
factory(); | ||
}((function () { 'use strict'; | ||
|
||
class someClass {} | ||
|
||
function someFunction (text = '/') {} | ||
|
||
console.log(someClass, someFunction); | ||
|
||
}))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default class {} | ||
|
||
function* doesNotMatter() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function (text = '/') {} | ||
|
||
function* doesNotMatter() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import someClass from './class.js'; | ||
import someFunction from './function'; | ||
|
||
console.log(someClass, someFunction); |