(func, errorFunc)
| 55 | // Internal: Contains `try...catch` logic used by other functions. |
| 56 | // This prevents other functions from being deoptimized. |
| 57 | function attempt(func, errorFunc) { |
| 58 | try { |
| 59 | func(); |
| 60 | } catch (exception) { |
| 61 | if (errorFunc) { |
| 62 | errorFunc(); |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // Test the `Date#getUTC*` methods. Based on work by @Yaffle. |
| 68 | var isExtended = new Date(-3509827334573292); |
no outgoing calls
no test coverage detected