public static EcmaValue Get([This] EcmaValue thisValue, EcmaValue key) { EcmaWeakMap map = thisValue.GetUnderlyingObject <EcmaWeakMap>(); if (key.Type != EcmaValueType.Object) { return(default);
public static EcmaValue Delete([This] EcmaValue thisValue, EcmaValue key) { EcmaWeakMap map = thisValue.GetUnderlyingObject <EcmaWeakMap>(); if (key.Type != EcmaValueType.Object) { return(false); } return(map.Delete(key.ToObject())); }