Merge branch 'master' of github.com:jashkenas/coffeescript into 2

# Conflicts:
#	lib/coffee-script/nodes.js
#	lib/coffee-script/scope.js
This commit is contained in:
Geoffrey
2017-02-04 12:36:49 -08:00
5 changed files with 22 additions and 7 deletions

View File

@@ -2161,7 +2161,7 @@
compileNode(o) {
var code;
o.scope.add(this.identifier, this.moduleDeclarationType);
o.scope.find(this.identifier, this.moduleDeclarationType);
code = [];
code.push(this.makeCode(this.original.value));
if (this.alias != null) {

View File

@@ -45,11 +45,11 @@
return this.parent.namedMethod();
}
find(name) {
find(name, type = 'var') {
if (this.check(name)) {
return true;
}
this.add(name, 'var');
this.add(name, type);
return false;
}