comparison: lvm.js
lvm.js
- changeset 3
- 6f338fbf0abc
- parent 2
- 253863ece36f
- child 4
- 0eda73eda4ae
equal
deleted
inserted
replaced
13 } |
13 } |
14 |
14 |
15 LValue.prototype = { |
15 LValue.prototype = { |
16 call: function (args) |
16 call: function (args) |
17 { |
17 { |
18 return this.value; |
18 if(this.type == "function") |
|
19 return this.value; |
|
20 else |
|
21 throw "Attempt to call a " + this.type + " value"; |
19 }, |
22 }, |
20 index: function (key) |
23 index: function (key) |
21 { |
24 { |
22 if(this.type == "table") |
25 if(this.type == "table") |
23 { |
26 { |