guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 62/99: scm_struct_init skips hidden fields.


From: Christopher Allan Webber
Subject: [Guile-commits] 62/99: scm_struct_init skips hidden fields.
Date: Sun, 10 Oct 2021 21:51:02 -0400 (EDT)

cwebber pushed a commit to branch compile-to-js-merge
in repository guile.

commit 30cc1e07511bb60bb7b4b85913e1f60111c8e38c
Author: Ian Price <ianprice90@googlemail.com>
AuthorDate: Wed Aug 2 22:55:00 2017 +0100

    scm_struct_init skips hidden fields.
    
    * module/language/js-il/runtime.js (scm_struct_init): skip 'h' fields.
---
 module/language/js-il/runtime.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/language/js-il/runtime.js b/module/language/js-il/runtime.js
index 5c544f8..35fa218 100644
--- a/module/language/js-il/runtime.js
+++ b/module/language/js-il/runtime.js
@@ -849,7 +849,7 @@ function scm_struct_init(struct, layout, args) {
     var arg = 0;
 
     for (var i = 0; i < nfields; i++) {
-        if (layout[2*i+1] == 'o') {
+        if (layout[2*i+1] == 'o' || layout[2*i+1] == 'h') {
             continue;
         }
         switch (layout[2*i]) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]