文件操作 - implementation.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/string.prototype.trim/test/implementation.js
编辑文件内容
'use strict'; var trim = require('../implementation'); var test = require('tape'); var hasStrictMode = require('has-strict-mode')(); var callBind = require('call-bind'); var runTests = require('./tests'); test('as a function', function (t) { t.test('bad array/this value', { skip: !hasStrictMode }, function (st) { /* eslint no-useless-call: 0 */ st['throws'](function () { trim.call(undefined, 'a'); }, TypeError, 'undefined is not an object'); st['throws'](function () { trim.call(null, 'a'); }, TypeError, 'null is not an object'); st.end(); }); runTests(callBind(trim), t); t.end(); });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件