Fix: undefined method `exists?' for class File (NoMethodError) https://bugs.webkit.org/show_bug.cgi?id=246743 https://github.com/WebKit/WebKit/commit/b7ac5d0ccc7ca3ed6bf4f2d40fde60247ce87d3c --- Source/JavaScriptCore/offlineasm/config.rb +++ Source/JavaScriptCore/offlineasm/config.rb @@ -22,11 +22,11 @@ # THE POSSIBILITY OF SUCH DAMAGE. buildProductsDirectory = ENV['BUILT_PRODUCTS_DIR']; -if buildProductsDirectory and File.exists?(buildProductsDirectory) +if buildProductsDirectory and File.exist?(buildProductsDirectory) $: << "#{buildProductsDirectory}/usr/local/include/WebKitAdditions/Scripts" end sdkRootDirectory = ENV['SDKROOT']; -if sdkRootDirectory and File.exists?(sdkRootDirectory) +if sdkRootDirectory and File.exist?(sdkRootDirectory) $: << "#{sdkRootDirectory}/usr/local/include/WebKitAdditions/Scripts" end --- Source/WebInspectorUI/Scripts/update-LegacyInspectorBackendCommands.rb +++ Source/WebInspectorUI/Scripts/update-LegacyInspectorBackendCommands.rb @@ -36,7 +36,7 @@ end generated_path = File.join tmpdir, output_filename - if !File.exists?(generated_path) + if !File.exist?(generated_path) puts "ERROR: Generated file does not exist at expected path." exit 1 end