Sha256: 7be85b1acbc2de5c3d9d8d64a396baf8c5a5b111905759315b3b395a22ea49e2

Contents?: true

Size: 440 Bytes

Versions: 11

Compression:

Stored size: 440 Bytes

Contents

exports.one_two_generator = function() {
  function* generator() {
    yield 1;
    yield 2;
  }
  return generator();
};

exports.dummy_generator = function() {
  function* generator() {
    const reply = yield '2 * 2';
    return reply === 4;
  }
  return generator();
};

exports.broken_generator = function() {
  function* brokenGenerator() {
    throw new Error('Something went wrong');
    yield 1;
  }
  return brokenGenerator();
};

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wasmtime-23.0.2 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-22.0.0 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-21.0.1 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-20.0.2 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-20.0.0 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-18.0.3 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-17.0.1 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-17.0.0 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-16.0.0 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-15.0.1 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js
wasmtime-15.0.0 ./ext/cargo-vendor/js-sys-0.3.66/tests/wasm/Generator.js