rsnext/test/integration/basic/pages/throw-undefined.js
JJ Kasper 1e4372c627
Show a better error when someone throws undefined (#6646)
* Show a better error when someone throws undefined

* Update error wording

Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>

* Update error wording in test

Co-Authored-By: ijjk <22380829+ijjk@users.noreply.github.com>

* Update test and add check for statusCode
before updating error
2019-03-13 13:39:05 -05:00

11 lines
No EOL
174 B
JavaScript

function ThrowUndefined (props) {
return (
<div>throw-undefined</div>
)
}
ThrowUndefined.getInitialProps = () => {
throw undefined
}
export default ThrowUndefined