(key, funcName)
| 30 | } |
| 31 | |
| 32 | function checkKey(key, funcName) { |
| 33 | if (typeof key !== "string") { |
| 34 | throw new Error(`${funcName} requires the first parameter to be of type string, not '${typeof key}'`); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | function GM_setValue(key, value) { |
| 39 | checkKey(key, "GM_setValue"); |
no outgoing calls
no test coverage detected