PhoenicisOrg/scripts

"this" inside function body not found in vcrun2003 Verb

Closed this issue · 0 comments

During my refactoring of the vcrun2003 verb script I've stumbled over the following lines:

dlls.forEach(function (dll) {
cp(that.programFiles() + "/BZEdit1.6.5/" + dll, this.system32directory());
});

I believe this.system32directory() will lead to unexpected behavior because it is located inside a function body.