bitovi / bitovi/funcunit

invalid usage of delete operator

Open
#246 1 comment 0 reactions 0 assignees View on GitHub
bug help wanted p2
Dominant language
JavaScript
Stars
571
Forks
370
PR merge metrics
No merged PRs in 30d

Description

There is usage of the `delete` operator in the method `add` (browser/queue.js). This construction is not valid in the `strict mode` so it leads to fail when FuncUnit is imported as a ES6 module.

```javascript
add = function(handler, error, context) {
if(handler instanceof Function) {
if(typeof error === 'object') {
context = error;
delete error;
}

error = (error && error.toString()) || 'Custom method has failed.';
```
Found in the npm version 3.7.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.