File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -16060,3 +16060,24 @@ def test_getentropy_d8(self):
16060
16060
self.do_runf('main.c', msg, assert_returncode=1)
16061
16061
self.v8_args += ['--enable-os-system']
16062
16062
self.do_runf('main.c')
16063
+
16064
+ def test_js_bool_type(self):
16065
+ create_file('main.c', '''
16066
+ #include <emscripten.h>
16067
+
16068
+ #define EM_JS_MACROS(ret, func_name, args, body...) \
16069
+ EM_JS(ret, func_name, args, body)
16070
+
16071
+ EM_JS_MACROS(void, check_bool_type, (void), {
16072
+ if (typeof true !== "boolean") {
16073
+ throw new Error("typeof true is " + typeof true + " not boolean");
16074
+ }
16075
+ })
16076
+
16077
+ int main() {
16078
+ check_bool_type();
16079
+ return 0;
16080
+ }
16081
+ ''')
16082
+ self.do_runf('main.c')
16083
+
You can’t perform that action at this time.
0 commit comments