Skip to content

Commit

Permalink
Reenable j_snoc and fix unbound variable in FFI import
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMeredith committed Feb 12, 2024
1 parent 069c781 commit dc9599b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion JavaScript/Web/MessageEvent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ getData me = case js_getData me of

foreign import javascript unsafe
"((x) => { var r2 = x.data;\
\ var r1 = typeof r === 'string' ? 1 : (r instanceof ArrayBuffer ? 3 : 2);\
\ var r1 = typeof r2 === 'string' ? 1 : (r2 instanceof ArrayBuffer ? 3 : 2);\
\ h$ret1 = r2; return r1; })"
js_getData :: MessageEvent -> (# Int#, JSVal #)
8 changes: 4 additions & 4 deletions test/Tests/Properties.hs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ tests =
testProperty "sf_cons" sf_cons,
testProperty "j_cons" j_cons,
testProperty "s_snoc" s_snoc,
-- testProperty "j_snoc" j_snoc, -- property `.f`
testProperty "j_snoc" j_snoc,
testProperty "s_append" s_append,
testProperty "s_append_s" s_append_s,
testProperty "sf_append" sf_append,
Expand Down Expand Up @@ -752,7 +752,7 @@ tests =

testGroup "numeric conversion" [
testGroup "integral" [
testProperty "j_decimal_integer" j_decimal_integer, -- IS_INTEGER_S
testProperty "j_decimal_integer" j_decimal_integer,
testProperty "j_decimal_int" j_decimal_int,
testProperty "j_decimal_int8" j_decimal_int8,
testProperty "j_decimal_int16" j_decimal_int16,
Expand All @@ -765,13 +765,13 @@ tests =
testProperty "j_decimal_word32" j_decimal_word32,
testProperty "j_decimal_word64" j_decimal_word64,

testProperty "j_decimal_integer_big" j_decimal_integer_big, -- IS_INTEGER_S
testProperty "j_decimal_integer_big" j_decimal_integer_big,
testProperty "j_decimal_int_big" j_decimal_int_big,
testProperty "j_decimal_int64_big" j_decimal_int64_big,
testProperty "j_decimal_word_big" j_decimal_word_big,
testProperty "j_decimal_word64_big" j_decimal_word64_big,

testProperty "j_hexadecimal_integer" j_hexadecimal_integer, -- IS_INTEGER_S
testProperty "j_hexadecimal_integer" j_hexadecimal_integer,
testProperty "j_hexadecimal_int" j_hexadecimal_int,
testProperty "j_hexadecimal_int8" j_hexadecimal_int8,
testProperty "j_hexadecimal_int16" j_hexadecimal_int16,
Expand Down

0 comments on commit dc9599b

Please sign in to comment.