Community
Participate
Working Groups
Greetings This might be a duplicate of 351470 , must I'm not absolutely sure it's the same situation. Steps : * Create a JS file with code like this (in the context of a requirejs module): define(function (require) { var Foo = require("path/to/module"); function Bar() { this.foo = new Foo(); } return Bar; ]); Seen : * The variable "Foo" is marked as "Unread". Expected : * Unless I'm missing something, the variable Foo is defined in the scope of the module, so it's properly accessible in the Bar function ; and the validator should probably not complain. Should it ?
I meant " The variable "Foo" is marked as "Never read" ". Sorry.