commit | 8339768515a8ce6dac8130806df7db397da07299 | [log] [tgz] |
---|---|---|
author | Kian Jamali <kjamali@google.com> | Fri Mar 24 17:10:21 2023 -0400 |
committer | Kian Jamali <kjamali@google.com> | Tue Mar 28 19:16:03 2023 +0000 |
tree | 46c44d61e27746812c6bd4ecb10c40463a5dde8f | |
parent | 474ced3816f4d46875d88ecded486a3ebb46b7e5 [diff] |
Trusted types patch for is-generator-function Change-Id: I4cdf03cfcc4d78ad7c91656b6af5dcf77138d7b9
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