
| Current Path : /usr/share/nodejs/json-stringify-safe/node_modules/must/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //usr/share/nodejs/json-stringify-safe/node_modules/must/register.js |
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
})