Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename types to _types in env.

  • Loading branch information...
commit c557f7fa70cccb019ff4360656d8363dda090588 1 parent a89649f
@maryrosecook authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/interpreter.js
  2. +1 −1  src/library.js
View
4 src/interpreter.js
@@ -60,9 +60,9 @@
var assignee = node[0];
var typeIdentifier = interpretAst(node[2], env);
- var typeFn = env.ctx.types[typeIdentifier];
+ var typeFn = env.ctx._types[typeIdentifier];
if(typeFn === undefined) {
- typeFn = env.ctx.types.generic;
+ typeFn = env.ctx._types.generic;
}
var value = instantiateType(typeFn, typeIdentifier);
View
2  src/library.js
@@ -31,7 +31,7 @@
return out;
},
- types: Isla.Utils.merge(extraTypes, {
+ _types: Isla.Utils.merge(extraTypes, {
list: function() {
return new List();
},
Please sign in to comment.
Something went wrong with that request. Please try again.