Skip to content

Commit

Permalink
Merge pull request #14531 from rwjblue/fix-jshint-issues
Browse files Browse the repository at this point in the history
[BUGFIX lts-2-8] Fix JSHint issue with referencing `Symbol`.
  • Loading branch information
rwjblue authored Oct 27, 2016
2 parents 594462b + bca88ee commit 67f9626
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/ember-metal/tests/utils_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import {
QUnit.module('Ember Metal Utils');

QUnit.test('inspect outputs the toString() representation of Symbols', function() {
// Symbol is not defined on pre-ES2015 runtimes, so this let's us safely test
// for it's existence (where a simple `if (Symbol)` would ReferenceError)
let Symbol = Symbol || null;

if (Symbol) {
if (typeof Symbol !== 'undefined') {
let symbol = Symbol('test');
equal(inspect(symbol), 'Symbol(test)');
} else {
Expand Down

0 comments on commit 67f9626

Please sign in to comment.