aboutsummaryrefslogtreecommitdiff
path: root/vm.d
diff options
context:
space:
mode:
Diffstat (limited to 'vm.d')
-rw-r--r--vm.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm.d b/vm.d
index c7e5e8e..6ab2e96 100644
--- a/vm.d
+++ b/vm.d
@@ -404,6 +404,11 @@ class VM {
Seq seq = asSeq(this.popA());
this.pushA(makeNumberValue(seq.length()));
break;
+ case OpCode.OP_MEMBER:
+ Seq seq = asSeq(this.popA());
+ Value val = this.popA();
+ this.pushA(makeBooleanValue(seq.isIn(val)));
+ break;
case OpCode.OP_ADD:
Value b = this.popA();
/*