示例#1
0
        internal void DeletePropertyOrThrow([NotNull] ScriptObject obj, ScriptValue property)
        {
            //https://tc39.github.io/ecma262/#sec-deletepropertyorthrow
            Debug.Assert(IsPropertyKey(property));
            var success = obj.Delete(property);

            if (!success)
            {
                throw CreateTypeError();
            }
        }