• Sean Hammond's avatar
    Don't throw if hypothesisConfig() isn't a function · 1376ebb0
    Sean Hammond authored
    Log a warning, rather than throwing an error, if
    window.hypothesisConfig() exists but isn't a function.
    
    "Warn but continue" is in line with our general approach to handling
    invalid configuration in the client. For example if there's an invalid
    js-hypothesis-config script in the page it logs a warning and continues.
    
    For some required config settings, such as config.app, if the setting is
    invalid then the client crashes out immediately because it can't
    continue. But otherwise it should warn and continue.
    1376ebb0
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
yarn.lock Loading commit data...