diff --git a/meson.build b/meson.build
index 59a713c..4145b28 100644
--- a/meson.build
+++ b/meson.build
@@ -70,6 +70,7 @@ else
         '-Wno-variadic-macros',  # GLib uses these in header files
         '-Wno-missing-field-initializers',  # SpiderMonkey JSClass, among others
         '-Wno-dangling-pointer',  # Root list in JS::Rooted<T> with GCC 12
+        '-DRUST_BINDGEN', # avoid FileHandleType error with js140
     ]), language: 'cpp')
 
     add_project_arguments(cc.get_supported_arguments([
