Skip to content

Commit

Permalink
[[FIX]] Add global variables introduced in ES2017
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike authored and rwaldron committed Jan 29, 2019
1 parent 457d732 commit aded551
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ var JSHINT = (function() {
combine(predefined, vars.ecmaIdentifiers[6]);
}

if (state.inES8()) {
combine(predefined, vars.ecmaIdentifiers[8]);
}

/**
* Use `in` to check for the presence of any explicitly-specified value for
* `globalstrict` because both `true` and `false` should trigger an error.
Expand Down
4 changes: 4 additions & 0 deletions src/vars.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ exports.ecmaIdentifiers = {
Uint8ClampedArray : false,
WeakMap : false,
WeakSet : false
},
8: {
Atomics : false,
SharedArrayBuffer : false
}
};

Expand Down

0 comments on commit aded551

Please sign in to comment.