Closed nathancahill closed 4 years ago
What was broken before this fix?
Calling new page.Route
without the 3rd parameter is broken. It should default to globalPage
Can you add a test?
Added a test. Before this PR, it fails:
1) Route Can create Route:
TypeError: Cannot read property '_strict' of undefined
at new Route (index.js:754:39)
at Context.<anonymous> (test/tests.js:801:15)
at processImmediate (internal/timers.js:439:21)
Thanks!
var _page
can bepage
(passed in as an argument) orglobalPage
. The opts are pulled from the first one instead of either one, this PR corrects that.