Problem with MeshLine.js update

When I try to update mesh line points(replace it with new) I got some weird geometry - like thin line

var line2d = new THREE.Line3(
new THREE.Vector3(0, 0, 0),
new THREE.Vector3(100, 100, 0)
var center = line2d.getCenter();
var curve = new THREE.QuadraticBezierCurve3(
new THREE.Vector3(0, 0, 0),
new THREE.Vector3(center.x, center.y, 0.5),
new THREE.Vector3(100, 200, 0)

var points = curve.getPoints(50);
var geometry = new THREE.Geometry().setFromPoints(points);
var newMeshLine = new MeshLine();
console.log('!!!',meshLine.geometry.attributes.position.array, newMeshLine.geometry.attributes.position.array);
meshLine.geometry.attributes.position.array = newMeshLine.geometry.attributes.position.array
meshLine.geometry.attributes.position.needsUpdate = true

If you click update button and turn the line you will see that it is weird.
The problem is in update function, but not sure where exactly