mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-19 18:20:22 +02:00
struct-set! primitive returns no values
* module/language/js-il/runtime.js (struct-set!): Don't return a value.
This commit is contained in:
parent
70c25b1290
commit
2da7a82d9d
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue