Sha256: ee57eea244bda607e6d81e3ec4cc08325f6f70124d26463a578b5437b8073191

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 Bytes

Contents

(function(env) {
  function hasFunctioningSymbols() {
    if (typeof Symbol === 'undefined') {
      return false;
    }

    try {
      var s1 = Symbol();
      var s2 = Symbol();
      if (typeof s1 !== 'symbol') {
        return false;
      }
      if (s1 === s2) {
        return false;
      }
      return true;
    } catch (e) {
      return false;
    }
  }

  env.requireFunctioningSymbols = function() {
    if (!hasFunctioningSymbols()) {
      env.pending("Browser has incomplete or missing support for Symbols");
    }
  };

})(jasmine.getEnv());

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jasmine-core-2.99.1 ./lib/jasmine-core/spec/helpers/checkForSymbol.js
jasmine-core-3.0.0 ./lib/jasmine-core/spec/helpers/checkForSymbol.js
jasmine-core-2.99.0 ./lib/jasmine-core/spec/helpers/checkForSymbol.js
jasmine-core-2.9.1 ./lib/jasmine-core/spec/helpers/checkForSymbol.js
jasmine-core-2.9.0 ./lib/jasmine-core/spec/helpers/checkForSymbol.js