summaryrefslogtreecommitdiff
path: root/module/language/js-il
diff options
context:
space:
mode:
authorIan Price <ianprice90@googlemail.com>2017-08-03 00:23:45 +0100
committerIan Price <ianprice90@googlemail.com>2017-08-03 00:23:45 +0100
commit2da7a82d9d1aba1e81dd1f359ef5942bc416ca65 (patch)
tree7863ab50bfa742b04ac70b804665bac99bfaffc7 /module/language/js-il
parent70c25b1290cc1bf5f07fe432272e7b550f205201 (diff)
downloadguile-2da7a82d9d1aba1e81dd1f359ef5942bc416ca65.tar.gz
struct-set! primitive returns no values
* module/language/js-il/runtime.js (struct-set!): Don't return a value.
Diffstat (limited to 'module/language/js-il')
-rw-r--r--module/language/js-il/runtime.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/language/js-il/runtime.js b/module/language/js-il/runtime.js
index 8e0480eda..e0fc34da1 100644
--- a/module/language/js-il/runtime.js
+++ b/module/language/js-il/runtime.js
@@ -476,7 +476,8 @@ scheme.primitives["struct-vtable"] = function(struct) {
};
scheme.primitives["struct-set!"] = function (struct, idx, obj) {
- return struct.fields[idx] = obj;
+ struct.fields[idx] = obj;
+ return;
};
scheme.primitives["struct-ref"] = function (struct, idx) {