1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/integration/basic/pages/circular-json-error.js

18 lines
335 B
JavaScript
Raw Normal View History

function CircularJSONErrorPage () {
return <div>This won't render</div>
}
CircularJSONErrorPage.getInitialProps = () => {
// This creates a circular JSON object
const object = {}
object.arr = [
object, object
]
object.arr.push(object.arr)
object.obj = object
return object
}
export default CircularJSONErrorPage