I've spotted a potential code issue that appears to be a writing error, but I don't have test cases to verify what problems it might cause. Maybe I'm overthinking it, and I'd appreciate your confirmation.
version: @ArcGIS/core 4.34.8
file location:@arcgis\core\chunks\Envelope.js
class F {
static getInstance() {
return F.s_thisInstance
}
constructor() {
this.m_map = new Map,
this.m_vd2D = new L(1),
this.m_map.set(1, this.m_vd2D),
this.m_vd3D = new L(3),
this.m_map.set(3, this.m_vd2D) // **This line**
}
GetVD2D() {
return this.m_vd2D
}
GetVD3D() {
return this.m_vd3D
}
FindOrAdd(t) {
if (1 === t) return this.GetVD2D();
if (3 === t) return this.GetVD3D();
const e = this.m_map.get(t);
if (e) return e;
const s = new L(t);
return this.m_map.set(t, s), s
}
}
On line 11:
this.m_map.set(3, this.m_vd2D)
. Based on the code from the previous two lines, I think the index 3 on line 11 should point to
this.m_vd3D
instead.