protected virtual void WriteMap(EcmaMap map) { WriteObjectTag(map); WriteArrayLength(map.Size); WriteToken(InspectorTokenType.Space); WriteToken(InspectorTokenType.ObjectStart); map.ForEach((v, k) => { if (this.LastToken != InspectorTokenType.ObjectStart) { WriteToken(InspectorTokenType.EntrySeparator); } WriteValueOrObjectTag(k); WriteToken(InspectorTokenType.MapKeyValueSeparator); WriteValueOrObjectTag(v); }); WriteToken(InspectorTokenType.ObjectEnd); }
public static EcmaValue Clear([This] EcmaValue thisValue) { EcmaMap map = thisValue.GetUnderlyingObject <EcmaMap>(); map.Clear(); return(default);