HTML5 Canvas

The miterLimit Property

Try to set the miterLimit to 4 (then, the miter length will exceed the miter limit), and when the lines meet it will be displayed as lineJoin="bevel".