(instance, stackIndex)
| 2 | /* global module */ |
| 3 | |
| 4 | export function addDebugMetadata(instance, stackIndex) { |
| 5 | // @ts-expect-error todo: stacktrace does not exist on error (non standard browser?) |
| 6 | const {stack, stacktrace, message} = new Error("stacktrace source"); |
| 7 | instance.debug = { |
| 8 | stackInfo: {stack, stacktrace, message}, |
| 9 | stackIndex: stackIndex, |
| 10 | }; |
| 11 | } |
| 12 | |
| 13 | // DEVTOOLS SETUP |
| 14 | type StyletronStyles = { |
no outgoing calls
no test coverage detected