文件操作 - accessor.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/has-proto/accessor.js
编辑文件内容
'use strict'; var result = require('./')(); var test = { __proto__: null, foo: {} }; /** @type {import('./accessor')} */ module.exports = function hasAccessor() { /* eslint no-proto: 0 */ return result && !('toString' in test) // eslint-disable-next-line no-extra-parens && /** @type {{ __proto__?: typeof Object.prototype }} */ ({}).__proto__ === Object.prototype // eslint-disable-next-line no-extra-parens && /** @type {ReadonlyArray<never> & { __proto__?: typeof Array.prototype }} */ ( []).__proto__ === Array.prototype; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件