Sha256: 73b3ce80757661fd7206a3bf8f5adfa1aaab9e5b7f3ef7bff5320a6dcf878210

Contents?: true

Size: 496 Bytes

Versions: 12

Compression:

Stored size: 496 Bytes

Contents

(function(env) {
  function hasFunctioningSets() {
    if (typeof Set === 'undefined') { return false; }

    try {
      var s = new Set([4]);
      if (s.size !== 1) { return false; }
      if (s.values().next().value !== 4) { return false; }
      return true;
    } catch(e) {
      return false;
    }
  }

  env.requireFunctioningSets = function() {
    if (!hasFunctioningSets()) {
      env.pending("Browser has incomplete or missing support for Sets");
    }
  };

})(jasmine.getEnv());

Version data entries

12 entries across 11 versions & 2 rubygems

Version Path
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/jasmine-core-2.8.0/lib/jasmine-core/spec/helpers/checkForSet.js
tdiary-5.0.7 vendor/bundle/gems/jasmine-core-2.8.0/lib/jasmine-core/spec/helpers/checkForSet.js
tdiary-5.0.6 vendor/bundle/gems/jasmine-core-2.8.0/lib/jasmine-core/spec/helpers/checkForSet.js
jasmine-core-2.8.0 ./lib/jasmine-core/spec/helpers/checkForSet.js
jasmine-core-2.7.0 ./lib/jasmine-core/spec/helpers/checkForSet.js
tdiary-5.0.5 vendor/bundle/gems/jasmine-core-2.6.3/lib/jasmine-core/spec/helpers/checkForSet.js
tdiary-5.0.5 vendor/bundle/gems/jasmine-core-2.6.4/lib/jasmine-core/spec/helpers/checkForSet.js
jasmine-core-2.6.4 ./lib/jasmine-core/spec/helpers/checkForSet.js
jasmine-core-2.6.3 ./lib/jasmine-core/spec/helpers/checkForSet.js
jasmine-core-2.6.2 ./lib/jasmine-core/spec/helpers/checkForSet.js
jasmine-core-2.6.1 ./lib/jasmine-core/spec/helpers/checkForSet.js
jasmine-core-2.6.0 ./lib/jasmine-core/spec/helpers/checkForSet.js