(code: string)
| 338 | * Returns the syntax error in the given code, if any. |
| 339 | */ |
| 340 | export function getSyntaxErrorIn(code: string): Error | void { |
| 341 | try { |
| 342 | new Function(code); |
| 343 | } catch (e) { |
| 344 | return e; |
| 345 | } |
| 346 | } |
no outgoing calls
no test coverage detected