Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do better detection of lists.

* Draw env clobbers prototype chain by using jquery extend to dupe env it is passed before modifying it.  instanceof on isla List does not work on a list that is part of a duped env.
  • Loading branch information...
commit 451ad488d8f98a57c408b8977f46c898d3c9f8cd 1 parent c557f7f
@maryrosecook authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/interpreter.js
View
2  src/interpreter.js
@@ -202,7 +202,7 @@
var resolve = multimethod()
.dispatch(function(thing) {
- if(thing instanceof Isla.Library.List) {
+ if(thing._meta && thing._meta.type === "list") {
return "list";
} else if(Isla.Utils.type(thing) === "Object") {
return thing.ref === undefined ? "object" : "ref";
Please sign in to comment.
Something went wrong with that request. Please try again.