HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/dev/nowruzgan/rest/node_modules/flaverr/test/flaverr.test.js
describe('flaverr()', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){

  describe('overriding an existing Error\'s `.code`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
    it('should work with `flaverr({code: \'…\'},err)`');
    it('should work with `flaverr(\'…\',err)`');
  });

  describe('adding/overriding other miscellaneous properties of an existing Error', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
    it('should work');
  });

  describe('constructing a new Error', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
    it('should work');
    it('should get expected customizations');
    it('should have `.name === \'Error\'` by default');
  });

  describe('overriding an existing Error\'s `.name`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
    it('should work');
    it('should also impact the `.stack`');
  });

  describe('overriding an existing Error\'s `.message`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
    it('should work');
    it('should also impact the `.stack`');
  });

  describe('attempting to set an Error\'s `.stack`', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
    it('should fail');
  });

  describe('using `flaverr(…,…,caller)` to improve the stack trace', function _wouldBeArrowFnIfDidntNeedToSupportNode6(){
    it('should work');
    it('should properly modify stack trace');
  });

});