REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.27 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/es-define-property/test/index.js
Text
Base64
'use strict'; var $defineProperty = require('../'); var test = require('tape'); var gOPD = require('gopd'); test('defineProperty: supported', { skip: !$defineProperty }, function (t) { t.plan(4); t.equal(typeof $defineProperty, 'function', 'defineProperty is supported'); if ($defineProperty && gOPD) { // this `if` check is just to shut TS up /** @type {{ a: number, b?: number, c?: number }} */ var o = { a: 1 }; $defineProperty(o, 'b', { enumerable: true, value: 2 }); t.deepEqual( gOPD(o, 'b'), { configurable: false, enumerable: true, value: 2, writable: false }, 'property descriptor is as expected' ); $defineProperty(o, 'c', { enumerable: false, value: 3, writable: true }); t.deepEqual( gOPD(o, 'c'), { configurable: false, enumerable: false, value: 3, writable: true }, 'property descriptor is as expected' ); } t.equal($defineProperty, Object.defineProperty, 'defineProperty is Object.defineProperty'); t.end(); }); test('defineProperty: not supported', { skip: !!$defineProperty }, function (t) { t.notOk($defineProperty, 'defineProperty is not supported'); t.match( typeof $defineProperty, /^(?:undefined|boolean)$/, '`typeof defineProperty` is `undefined` or `boolean`' ); t.end(); });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
1.27 KB
lrw-r--r--
2026-02-03 15:06:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).