| Server IP : 138.197.176.125 / Your IP : 216.73.216.38 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/nodejs/json-stringify-safe/node_modules/must/ |
Upload File : |
var Must = module.exports = require("./must")
/* eslint no-extend-native: 0 */
/**
* Creates an instance of [`Must`](#Must) with the current object for asserting
* and calling matchers on.
*
* This property is non-enumerable just like built-in properties, so
* it'll never interfere with any regular usage of objects.
*
* Please note that JavaScript does not allow method calls on `null` or
* `undefined`, so you'll sometimes have to call [`Must`](#Must) on them by
* hand. Assigning `require("must")` to `expect` or `demand` works well with
* those cases.
*
* @example
* true.must.be.true()
* [].must.be.empty()
*
* @property must
* @for Object
* @on prototype
*/
Object.defineProperty(Object.prototype, "must", {
get: function() { "use strict"; return new Must(this) },
set: function(value) {
Object.defineProperty(this, "must", {
value: value,
configurable: true,
enumrable: true,
writable: true
})
},
// Without configurable, can't redefine it when reloading this file, e.g.
configurable: true
})