示例#1
0
        public static EcmaValue Get([This] EcmaValue thisValue, EcmaValue key)
        {
            EcmaWeakMap map = thisValue.GetUnderlyingObject <EcmaWeakMap>();

            if (key.Type != EcmaValueType.Object)
            {
                return(default);
示例#2
0
        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()));
        }