The Browser SDK is checking if the type supplied to firstPartyHosts is a RegExp, but the Dart RegExp returns false for that check. Fix it so that we create a JavaScript RegExp.
Note, this only works because the RegExp is very simple in this case. More complicated RegExes may not convert properly.
refs: #554
How?
If needed, a description of how this PR accomplishes what it does.
Review checklist
[ ] This pull request has appropriate unit and / or integration tests
[ ] This pull request references a Github or JIRA issue
What and why?
The Browser SDK is checking if the type supplied to firstPartyHosts is a RegExp, but the Dart RegExp returns
false
for that check. Fix it so that we create a JavaScript RegExp.Note, this only works because the RegExp is very simple in this case. More complicated RegExes may not convert properly.
refs: #554
How?
If needed, a description of how this PR accomplishes what it does.
Review checklist