(media, dedupe, supports, layer)
| 968 | } |
| 969 | |
| 970 | function printParams(media, dedupe, supports, layer) { |
| 971 | let result = ""; |
| 972 | |
| 973 | if (typeof layer !== "undefined") { |
| 974 | result = `, ${JSON.stringify(layer)}`; |
| 975 | } |
| 976 | |
| 977 | if (typeof supports !== "undefined") { |
| 978 | result = `, ${JSON.stringify(supports)}${result}`; |
| 979 | } else if (result.length > 0) { |
| 980 | result = `, undefined${result}`; |
| 981 | } |
| 982 | |
| 983 | if (dedupe) { |
| 984 | result = `, true${result}`; |
| 985 | } else if (result.length > 0) { |
| 986 | result = `, false${result}`; |
| 987 | } |
| 988 | |
| 989 | if (media) { |
| 990 | result = `${JSON.stringify(media)}${result}`; |
| 991 | } else if (result.length > 0) { |
| 992 | result = `""${result}`; |
| 993 | } |
| 994 | |
| 995 | return result; |
| 996 | } |
| 997 | |
| 998 | function getModuleCode( |
| 999 | result, |
no outgoing calls
no test coverage detected
searching dependent graphs…