Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebook/regenerator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: regenerator-runtime@0.14.0
Choose a base ref
...
head repository: facebook/regenerator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: regenerator-runtime@0.14.1
Choose a head ref

Commits on Aug 4, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    dimkl Dimitris Klouvas
    Copy the full SHA
    f3d929f View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e9271b7 View commit details
  3. Remove unused private package.

    This removal probably should have happened as part of PR #394.
    benjamn committed Aug 4, 2023
    Copy the full SHA
    0f0c764 View commit details
  4. Copy the full SHA
    92371c7 View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    dimkl Dimitris Klouvas
    Copy the full SHA
    3d9cbd7 View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    241cf75 View commit details
  7. Copy the full SHA
    914719b View commit details
  8. Regenerate docs/bundle.js with latest implementation.

    Command:
    
      npx browserify -s regenerator ./main.js > docs/bundle.js
    benjamn committed Aug 4, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    dimkl Dimitris Klouvas
    Copy the full SHA
    d1361ed View commit details

Commits on Aug 18, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d2c3bf8 View commit details
  2. Copy the full SHA
    a3e9009 View commit details
  3. Copy the full SHA
    7c16d9b View commit details

Commits on Dec 14, 2023

  1. Copy the full SHA
    50ed6aa View commit details

Commits on Dec 15, 2023

  1. Copy the full SHA
    d66afa4 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    dimkl Dimitris Klouvas
    Copy the full SHA
    1037417 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    34f2fc1 View commit details
  4. Copy the full SHA
    56cf3ad View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    72fbbb7 View commit details
  6. Verified

    This commit was signed with the committer’s verified signature.
    dimkl Dimitris Klouvas
    Copy the full SHA
    853925f View commit details
  7. Fix outdated reference link in runtime.js (#704)

    * fix: modify outdated reference link
    
    * Elaborate GeneratorResume doneResult() comment in runtime.js
    
    Co-authored-by: Ben Newman <ben@benjamn.com>
    rbals0445 and benjamn authored Dec 15, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    dimkl Dimitris Klouvas
    Copy the full SHA
    fc6b844 View commit details
  8. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f4425fb View commit details
  9. Copy the full SHA
    6be1e62 View commit details
Showing with 79,200 additions and 105,143 deletions.
  1. +78,631 −104,581 docs/bundle.js
  2. +544 −548 package-lock.json
  3. +3 −4 package.json
  4. +1 −1 packages/runtime/package.json
  5. +5 −4 packages/runtime/runtime.js
  6. +4 −4 test/run.js
  7. +11 −0 test/tests.es6.js
  8. +1 −1 test/tests.transform.js
183,212 changes: 78,631 additions & 104,581 deletions docs/bundle.js

Large diffs are not rendered by default.

1,092 changes: 544 additions & 548 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
"desugaring",
"ES6"
],
"version": "0.14.10",
"version": "0.14.11",
"homepage": "http://github.com/facebook/regenerator",
"repository": {
"type": "git",
@@ -32,10 +32,9 @@
"@babel/runtime": "^7.8.4",
"@babel/types": "^7.8.3",
"commoner": "^0.10.8",
"private": "^0.1.8",
"recast": "^0.21.5",
"recast": "^0.23.3",
"regenerator-preset": "^0.14.1",
"regenerator-runtime": "^0.13.11",
"regenerator-runtime": "^0.14.0",
"regenerator-transform": "^0.15.2",
"through": "^2.3.8"
},
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"name": "regenerator-runtime",
"author": "Ben Newman <bn@cs.stanford.edu>",
"description": "Runtime for Regenerator-compiled generator and async functions.",
"version": "0.14.0",
"version": "0.14.1",
"main": "runtime.js",
"keywords": [
"regenerator",
9 changes: 5 additions & 4 deletions packages/runtime/runtime.js
Original file line number Diff line number Diff line change
@@ -259,8 +259,9 @@ var runtime = (function (exports) {
throw arg;
}

// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
// Be forgiving, per GeneratorResume behavior specified since ES2015:
// ES2015 spec, step 3: https://262.ecma-international.org/6.0/#sec-generatorresume
// Latest spec, step 2: https://tc39.es/ecma262/#sec-generatorresume
return doneResult();
}

@@ -333,7 +334,7 @@ var runtime = (function (exports) {
var method = delegate.iterator[methodName];
if (method === undefined) {
// A .throw or .return when the delegate iterator has no .throw
// method, or a missing .next mehtod, always terminate the
// method, or a missing .next method, always terminate the
// yield* loop.
context.delegate = null;

@@ -487,7 +488,7 @@ var runtime = (function (exports) {
};

function values(iterable) {
if (iterable || iterable === "") {
if (iterable != null) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
8 changes: 4 additions & 4 deletions test/run.js
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ function convert(es6File, es5File, callback) {
try {
checkDuplicatedNodes(babel, ast);
} catch (err) {
err.message = "Occured while transforming: " + es6File + "\n" + err.message;
err.message = "Occurred while transforming: " + es6File + "\n" + err.message;
throw err;
}
callback();
@@ -163,7 +163,7 @@ function convertWithRegeneratorPluginOnly(inputFile, outputFile, callback) {
try {
checkDuplicatedNodes(babel, ast);
} catch (err) {
err.message = "Occured while transforming: " + inputFile + "\n" + err.message;
err.message = "Occurred while transforming: " + inputFile + "\n" + err.message;
throw err;
}
callback();
@@ -197,7 +197,7 @@ function convertWithParamsTransform(es6File, es5File, callback) {
try {
checkDuplicatedNodes(babel, ast);
} catch (err) {
err.message = "Occured while transforming: " + es6File + "\n" + err.message;
err.message = "Occurred while transforming: " + es6File + "\n" + err.message;
throw err;
}
callback();
@@ -253,7 +253,7 @@ function convertWithCustomPromiseReplacer(es6File, es5File, callback) {
try {
checkDuplicatedNodes(babel, ast);
} catch (err) {
err.message = "Occured while transforming: " + es6File + "\n" + err.message;
err.message = "Occurred while transforming: " + es6File + "\n" + err.message;
callback(err);
}
callback();
11 changes: 11 additions & 0 deletions test/tests.es6.js
Original file line number Diff line number Diff line change
@@ -1537,6 +1537,17 @@ describe("delegated yield", function() {
it.next();
}, TypeError);
});

it("should work with falsy values", function () {
try {
Boolean.prototype[Symbol.iterator] = function* () { yield "Hello" };
function* gen() { yield* false; };

check(gen(), ["Hello"]);
} finally {
delete Boolean.prototype[Symbol.iterator];
}
});
});

(fullCompatibility
2 changes: 1 addition & 1 deletion test/tests.transform.js
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ context("functions", function() {
}

function assertMarkCall(node) {
// assiging a call expression to regeneratorRuntime.mark()
// assigning a call expression to regeneratorRuntime.mark()

n.CallExpression.assert(node);
assert.strictEqual(node.callee.object.name, 'regeneratorRuntime')