Skip to content

Instantly share code, notes, and snippets.

@halan
Last active Dec 22, 2015
Embed
What would you like to do?
V8 Bug!
<script>
a = 'Bug'
r = {z: {x: a}, z: 'Not Bug!'}
if(r.z == 'Not Bug!')
document.write('<style>html{background: green}</style>')
else
document.write('<style>html{background: red}</style>')
</script>
$ node
> a = 'Bug'
'Bug'
> r = {z: {x: a}, z: 'Not Bug!'}
{ z: { x: 'Bug' } }
> r = {z: {x: 'What?'}, z: 'Not Bug!'}
{ z: 'Not Bug!' }
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment