Commit 9fd0433
authored
fix: don't throw on older versions of Node.js 6 (#711)
The `url.URL` object was added in Node.js v6.13.0. If you tried to
perform a `foo instanceof url.URL` on earlier versions, the code would
throw the following exception:
TypeError: Expecting a function in instanceof check, but got undefined1 parent fa24ae1 commit 9fd0433
File tree
1 file changed
+6
-2
lines changed- lib/instrumentation
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
0 commit comments