commit | dab259f5c18a6ef2246809379dbb678491b6859e | [log] [tgz] |
---|---|---|
author | Kian Jamali <kjamali@google.com> | Fri Jun 16 23:52:39 2023 +0000 |
committer | Kian Jamali <kjamali@google.com> | Fri Jun 16 23:54:15 2023 +0000 |
tree | f95d19ddd5ec530d0930c87ec88501a36fbf53f6 | |
parent | 347349170191c2aa1755ee8a6273da5081cc867a [diff] |
[nwd] Fixed the trustedTypes variable identification bug There is a small bug with the the "trustedTypes" variable which is not found as I was missing the "self." statement in index.js. Change-Id: Id6976aed52943c8435857e46c62719fe54ef73f3
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