commit | 347349170191c2aa1755ee8a6273da5081cc867a | [log] [tgz] |
---|---|---|
author | Kian Jamali <kjamali@google.com> | Thu Jun 08 22:16:10 2023 +0000 |
committer | Kian Jamali <kjamali@google.com> | Thu Jun 08 22:25:48 2023 +0000 |
tree | 5d4ae0ded508f0bd74df3394585015648bafc917 | |
parent | 8339768515a8ce6dac8130806df7db397da07299 [diff] |
Updating index.js to patch the TT violation using the Function workaround Change-Id: I857bf52804157c537cd1eabe5091c6929983e55d
Is this a native generator function?
var isGeneratorFunction = require('is-generator-function'); assert(!isGeneratorFunction(function () {})); assert(!isGeneratorFunction(null)); assert(isGeneratorFunction(function* () { yield 42; return Infinity; }));
Simply clone the repo, npm install
, and run npm test