From 2da7a82d9d1aba1e81dd1f359ef5942bc416ca65 Mon Sep 17 00:00:00 2001 From: Ian Price Date: Thu, 3 Aug 2017 00:23:45 +0100 Subject: struct-set! primitive returns no values * module/language/js-il/runtime.js (struct-set!): Don't return a value. --- module/language/js-il/runtime.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module/language/js-il') 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) { -- cgit v1.2.3