Repository Analysis

emscripten-core/emscripten

Emscripten: An LLVM-to-WebAssembly Compiler

7.0 Low AI signal View on GitHub
7.0
Adjusted Score
7.0
Raw Score
100%
Time Factor
2026-05-29
Last Push
27,394
Stars
C++
Language
1,701,445
Lines of Code
9543
Files
11285
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 10HIGH 193MEDIUM 508LOW 10574

Pattern Findings

11285 matches across 19 categories. Click a row to expand file-level details.

Over-Commented Block9311 hits · 8597 pts
SeverityFileLineSnippet
LOWemrun.py61# us. Used to detect whether we might have gotten detached from the browser
LOWtools/link.py301
LOWtools/link.py421 passes += ['--ignore-implicit-traps']
LOWtools/link.py721 # Increase the INITIAL_MEMORY and shift GLOBAL_BASE to account for
LOWtools/link.py1101 # users who forget to explicitly export `main`.
LOWtools/link.py1181 # Default to TEXTDECODER=2 (always use TextDecoder to decode UTF-8 strings)
LOWtools/link.py1841 # duplication between functions added by the driver/libraries and function
LOWtools/link.py2521 '--remove-style-link-type-attributes',
LOWtools/config.py221
LOWtools/building.py661 # s(0) | 0;
LOWtools/building.py881 args.append('--minify-imports-and-exports-and-modules')
LOWtools/building.py1021 shutil.move(wasm_file, wasm_file_with_dwarf)
LOWtools/system_libs.py121 # definition of `__vm_wait`, but `mmap.o` also contains a dummy/weak definition
LOWtools/system_libs.py361 name: str | None = None
LOWtools/wasm-sourcemap.py281
LOWtools/wasm-sourcemap.py301 # DW_AT_name ("foo")
LOWtools/wasm-sourcemap.py441
LOWtools/__init__.py1# Copyright 2011 The Emscripten Authors. All rights reserved.
LOWtools/config_template.py1# This file will be edited (the {{{ }}} things), and written to `.emscripten`
LOWtools/config_template.py21
LOWtools/config_template.py41# Wasm engines to use in STANDALONE_WASM tests.
LOWtools/filelock.py1# This is free and unencumbered software released into the public domain.
LOWtools/filelock.py21# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
LOWtools/settings.py161# [OLD_NAME, NEW_NAME]
LOWtools/feature_matrix.py141 # browser version.
LOWtools/feature_matrix.py161# },
LOWtools/empath-split.py201 sm.parse(sourcemap)
LOWtools/emsymbolizer.py1#!/usr/bin/env python3
LOW…ols/scons/site_scons/site_tools/emscripten/__init__.py1#!/usr/bin/env python2
LOWtools/websocket_to_posix_proxy/src/sha1.cpp21#include <string.h>
LOWtools/websocket_to_posix_proxy/src/threads.h1#pragma once
LOWtools/websocket_to_posix_proxy/src/threads.h21#endif
LOWtools/websocket_to_posix_proxy/src/posix_sockets.h1#pragma once
LOWtools/websocket_to_posix_proxy/src/posix_sockets.h21#define CLOSE_SOCKET(x) close(x)
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c1#include <assert.h>
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c41#define POSIX_SOCKET_MSG_LISTEN 6
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c141
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c161#define MUSL_PF_DECnet 12
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c181#define MUSL_PF_BLUETOOTH 31
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c201#define MUSL_AF_APPLETALK MUSL_PF_APPLETALK
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c221#define MUSL_AF_PPPOX MUSL_PF_PPPOX
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c241static int Translate_Socket_Domain(int domain) {
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c261// case MUSL_PF_NETLINK: return PF_NETLINK;
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c281// case MUSL_PF_PHONET: return PF_PHONET;
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c301// case MUSL_AF_BRIDGE: return AF_BRIDGE;
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c321// case MUSL_AF_LLC: return AF_LLC;
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c381#define MUSL_IPPROTO_HOPOPTS 0
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c401#define MUSL_IPPROTO_DSTOPTS 60
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c461 return protocol;
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c481#define MUSL_SOL_RXRPC 272
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c501// case MUSL_SOL_X25: return SOL_X25;
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c521 default:
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c541#define MUSL_SO_REUSEPORT 15
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c561#define MUSL_SO_PEERSEC 31
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c601// case MUSL_SO_PEERCRED: return SO_PEERCRED;
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c621// case MUSL_SO_PEERSEC: return SO_PEERSEC;
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c641 fprintf(stderr, "Unrecognized SOL_SOCKET option %d!\n", sockopt);
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c661#define MUSL_TCP_THIN_DUPACK 17
LOW…ebsocket_to_posix_proxy/src/websocket_to_posix_proxy.c681 case MUSL_TCP_KEEPCNT: return TCP_KEEPCNT;
LOWtools/websocket_to_posix_proxy/src/main.cpp1#include <cassert>
9251 more matches not shown…
Decorative Section Separators334 hits · 940 pts
SeverityFileLineSnippet
MEDIUMtools/shared.py624# ============================================================================
MEDIUMtools/shared.py626# ============================================================================
MEDIUMtools/filelock.py39# ------------------------------------------------
MEDIUMtools/filelock.py61# ------------------------------------------------
MEDIUMtools/filelock.py69# ------------------------------------------------
MEDIUMtools/filelock.py91# ------------------------------------------------
MEDIUMtools/filelock.py112# ------------------------------------------------
MEDIUMtools/filelock.py196 # --------------------------------------------
MEDIUMtools/filelock.py213 # --------------------------------------------
MEDIUMtest/third_party/freetype/src/tools/glnames.py4810# ----------------------------------------------------------------
MEDIUMtest/third_party/freetype/src/tools/glnames.py4822# -----------------------------------------
MEDIUMtest/third_party/freetype/src/tools/chktrcmp.py21# --------------------------------------------------------------
MEDIUMtest/third_party/freetype/src/tools/chktrcmp.py48# --------------------------------------------------------------
MEDIUMtest/third_party/freetype/src/tools/chktrcmp.py73# --------------------------------------------------------------
MEDIUMtest/third_party/freetype/src/tools/chktrcmp.py96# --------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt30#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt78# --------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt113#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt117#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt121#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt129#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt133#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt148#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt153#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt160#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt167#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt174#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt181#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt188#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt195#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt207#-----------------------------------------------------------------------------
MEDIUMtest/third_party/openjpeg/CMakeLists.txt214#-----------------------------------------------------------------------------
MEDIUMtest/third_party/zlib/CMakeLists.txt78#============================================================================
MEDIUMtest/third_party/zlib/CMakeLists.txt80#============================================================================
MEDIUMtest/third_party/zlib/CMakeLists.txt170#============================================================================
MEDIUMtest/third_party/zlib/CMakeLists.txt172#============================================================================
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h46// ┌───────────────────┐
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h48// └─────────▲─────────┘
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h50// ┌─────────┴─────────┐
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h52// └─────────▲─────────┘
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h54// ┌────────────┴─────────────┐
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h56// ┌────────┴─────────┐ ┌──────────────┴──────────────────┐
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h58// └────────▲─────────┘ └──────────────▲──────────────────┘
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h60// └────────────┬─────────────┘
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h62// ┌───────┴───────┐
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h64// └───────▲───────┘
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h66// ┌────────┴────────┐
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h67// ┌─────┴─────┐ ┌─────┴─────┐
MEDIUMsystem/lib/llvm-libc/src/__support/FPUtil/FPBits.h69// └───────────┘ └───────────┘
MEDIUMsystem/lib/llvm-libc/src/__support/GPU/allocator.cpp153/// ┌────────┬──────────┬────────┬──────────────────┬──────────────────────────┐
MEDIUMsystem/lib/llvm-libc/src/__support/GPU/allocator.cpp155/// └────────┴──────────┴────────┴──────────────────┴──────────────────────────┘
MEDIUMthird_party/ply/ply/yacc.py60# ----------------------------------------------------------------------------
MEDIUMthird_party/ply/ply/yacc.py65#-----------------------------------------------------------------------------
MEDIUMthird_party/ply/ply/yacc.py69#-----------------------------------------------------------------------------
MEDIUMthird_party/ply/ply/yacc.py161#-----------------------------------------------------------------------------
MEDIUMthird_party/ply/ply/yacc.py167#-----------------------------------------------------------------------------
MEDIUMthird_party/ply/ply/yacc.py1116# -----------------------------------------------------------------------------
MEDIUMthird_party/ply/ply/yacc.py1121# -----------------------------------------------------------------------------
MEDIUMthird_party/ply/ply/yacc.py1128# -----------------------------------------------------------------------------
MEDIUMthird_party/ply/ply/yacc.py1291# -----------------------------------------------------------------------------
274 more matches not shown…
Cross-Language Confusion (JS/TS)78 hits · 474 pts
SeverityFileLineSnippet
HIGHtest/print_args.js20 print(index + ': ' + val);
HIGHtest/hello_world.js16print('Hello, world!');
HIGHtest/fasta.js36 print(line);
HIGHtest/fasta.js62 print(">ONE Homo sapiens alu")
HIGHtest/fasta.js65 print(">TWO IUB ambiguity codes")
HIGHtest/fasta.js68 print(">THREE Homo sapiens frequency")
HIGHtest/fannkuch.js23 print(s);
HIGHtest/fannkuch.js69print("Pfannkuchen(" + n.toString() + ") = " + fannkuch(n).toString());
HIGHtest/other/test_proxyfs_main.js16print("m1 read embed");
HIGHtest/other/test_proxyfs_main.js18print("m1 write");console.log("");
HIGHtest/other/test_proxyfs_main.js20print("m1 read");
HIGHtest/other/test_proxyfs_main.js24print("m2 read embed");
HIGHtest/other/test_proxyfs_main.js26print("m2 write");console.log("");
HIGHtest/other/test_proxyfs_main.js28print("m2 read");
HIGHtest/other/test_proxyfs_main.js32print("m1 read");
HIGHtest/other/test_proxyfs_main.js36print("m0 access existing");
HIGHtest/other/test_proxyfs_main.js38print("m0 access absent");
HIGHtest/other/test_proxyfs_main.js42print("m1 access existing");
HIGHtest/other/test_proxyfs_main.js44print("m1 access absent");
HIGHtest/other/test_proxyfs_main.js48print("m0 read embed");
HIGHtest/other/test_proxyfs_main.js50print("m0 read m1");
HIGHtest/other/test_proxyfs_main.js52print("m0 read m2");
HIGHtest/other/test_proxyfs_main.js56print("m0 write");console.log("");
HIGHtest/other/test_proxyfs_main.js58print("m0 read");
HIGHtest/other/test_proxyfs_main.js60print("m1 read");
HIGHtest/other/test_proxyfs_main.js62print("m2 read");
HIGHtest/other/test_proxyfs_main.js65print("m0 read embed");
HIGHtest/other/test_proxyfs_main.js67print("m1 read embed");
HIGHtest/other/test_proxyfs_main.js69print("m2 read embed");
HIGHtest/other/test_proxyfs_main.js73print("m0 write m1");console.log("");
HIGHtest/other/test_proxyfs_main.js75print("m0 read m1");
HIGHtest/other/test_proxyfs_main.js77print("m0 write m2");console.log("");
HIGHtest/other/test_proxyfs_main.js79print("m0 read m2");
HIGHtest/other/test_proxyfs_main.js81print("m1 read");
HIGHtest/other/test_proxyfs_main.js83print("m2 read");
HIGHtest/other/test_proxyfs_main.js85print("m0 read m0");
HIGHtest/other/test_proxyfs_main.js95print("file size");
HIGHtest/js_optimizer/AJSDCE.js25print(h(123));
HIGHtest/js_optimizer/AJSDCE.js50 print(hh(123));
HIGHtest/js_optimizer/JSDCE-output.js34print(h(123));
HIGHtest/js_optimizer/JSDCE-output.js62 print(hh(123));
HIGHtest/js_optimizer/AJSDCE-output.js17print(h(123));
HIGHtest/js_optimizer/AJSDCE-output.js29 print(hh(123));
HIGHtest/js_optimizer/JSDCE.js32print(h(123));
HIGHtest/js_optimizer/JSDCE.js79 print(hh(123));
HIGHthird_party/terser/terser.js9322 print("*");
HIGHthird_party/terser/terser.js9326 print(" ");
HIGHthird_party/terser/terser.js9333 print(make_indent(half ? 0.5 : 0));
HIGHthird_party/terser/terser.js9360 print(";");
HIGHthird_party/terser/terser.js9367 print(";");
HIGHthird_party/terser/terser.js9376 print("{");
HIGHthird_party/terser/terser.js9382 print("}");
HIGHthird_party/terser/terser.js9387 print("(");
HIGHthird_party/terser/terser.js9391 print(")");
HIGHthird_party/terser/terser.js9396 print("[");
HIGHthird_party/terser/terser.js9399 print("]");
HIGHthird_party/terser/terser.js9404 print(",");
HIGHthird_party/terser/terser.js9409 print(":");
HIGHthird_party/terser/terser.js9538 print("//" + value + "\n");
HIGHthird_party/terser/terser.js9545 print("/*" + value + "*/");
18 more matches not shown…
Hyper-Verbose Identifiers883 hits · 399 pts
SeverityFileLineSnippet
LOWemcc.py491 def get_clang_command_preprocessed():
LOWemrun.py198def delete_emrun_safe_firefox_profile():
LOWemrun.py211def create_emrun_safe_firefox_profile():
LOWemrun.py1359 def remove_readonly_and_try_again(func, path, exc_info):
LOWtools/link.py151def save_intermediate_with_wasm(name, wasm_binary):
LOWtools/link.py164def align_to_wasm_page_boundary(address):
LOWtools/link.py177def setup_environment_settings():
LOWtools/link.py302def should_run_binaryen_optimizer():
LOWtools/link.py311def get_binaryen_lowering_passes():
LOWtools/link.py397 def check_human_readable_list(items):
LOWtools/link.py975 def limit_incoming_module_api():
LOWtools/link.py1826def phase_calculate_system_libraries(options):
LOWtools/link.py2135def convert_line_endings_in_file(filename, to_eol):
LOWtools/link.py2419def module_export_name_substitution():
LOWtools/link.py2438def generate_traditional_runtime_html(target, options, js_target, wasm_target):
LOWtools/link.py2777def filter_out_fake_dynamic_libs(options, inputs):
LOWtools/link.py2790def filter_out_duplicate_fake_dynamic_libs(inputs):
LOWtools/link.py2860def unmangle_symbols_from_cmdline(symbols):
LOWtools/link.py2953def get_subresource_location_js(path):
LOWtools/link.py3001def phase_calculate_linker_inputs(options, linker_args):
LOWtools/extract_metadata.py75def parse_function_for_memory_inits(module, func_index, offset_map):
LOWtools/extract_metadata.py148def get_passive_segment_offsets(module):
LOWtools/extract_metadata.py163def find_segment_with_address(module, address):
LOWtools/config.py60def normalize_config_settings():
LOWtools/config.py77def normalize_relative_python_path():
LOWtools/config.py91def set_config_from_tool_location(config_key, tool_binary, f):
LOWtools/js_manipulation.py181def make_unsign_pointer_wrapper(sig):
LOWtools/building.py132def side_module_external_deps(external_symbols):
LOWtools/building.py333def get_command_with_possible_response_file(cmd):
LOWtools/building.py504def get_closure_compiler_and_env(user_args):
LOWtools/building.py873def minify_wasm_imports_and_exports(js_file, wasm_file, minify_exports, debug_info):
LOWtools/building.py1058def use_unsigned_pointers_in_js(js_file):
LOWtools/building.py1068def instrument_js_for_safe_heap(js_file):
LOWtools/building.py1165def get_binaryen_feature_flags():
LOWtools/building.py1262def new_intermediate_filename(name):
LOWtools/building.py1300def js_legalization_pass_flags():
LOWtools/system_libs.py178def ensure_target_in_ninja_file(ninja_file, target):
LOWtools/emscripten.py183def generate_js_compiler_input_hash(symbols_only=False):
LOWtools/emscripten.py238def report_missing_exports_wasm_only(metadata):
LOWtools/emscripten.py344def compile_javascript_cached():
LOWtools/emscripten.py639def create_tsd_exported_runtime_methods(metadata):
LOWtools/emscripten.py805def add_standard_wasm_imports(send_items_map):
LOWtools/emscripten.py1125def create_pointer_conversion_wrappers(metadata):
LOWtools/emscripten.py1235function applySignatureConversions(wasmExports) {
LOWtools/cmdline.py635def expand_byte_size_suffixes(value):
LOWtools/cmdline.py672 def parse_string_list_members(text):
LOWtools/cmdline.py802def normalize_boolean_setting(name, value):
LOWtools/toolchain_profiler.results_template.html115function shortenRidiculouslyLongCmdLine(cmdLine) {
LOWtools/toolchain_profiler.results_template.html367 function itemHierarchyFitsRootedOnLane(item, lane) {
LOWtools/shared.py317def node_reference_types_flags(nodejs):
LOWtools/shared.py450def llvm_tool_path_with_suffix(tool, suffix):
LOWtools/minimal_runtime_shell.py16def generate_minimal_runtime_load_statement(target_basename):
LOWtools/minimal_runtime_shell.py171def generate_minimal_runtime_html(target, options, js_target, target_basename):
LOWtools/feature_matrix.py257def apply_min_browser_versions():
LOWtools/toolchain_profiler.py220 def remove_last_occurrence_if_exists(lst, item):
LOWtools/response_file.py17def create_response_file_contents(args):
LOWtools/response_file.py114def substitute_response_files(args):
LOWtools/empath-split.py170def get_path_to_functions_map(wasm, sourcemap, paths):
LOWtools/emsymbolizer.py70def symbolize_address_symbolizer(module, address):
LOWtools/emsymbolizer.py213def symbolize_address_sourcemap(module, address, force_file):
823 more matches not shown…
Cross-Language Confusion76 hits · 386 pts
SeverityFileLineSnippet
HIGHtools/link.py2090 return "globalThis.process?.versions?.node && globalThis.process?.type != 'renderer'"
HIGHtools/link.py2477 if (!window.WebAssembly || location.search.indexOf('_rwasm=0') > 0) {
HIGHtools/link.py3128 # /dev/null, but that will take some refactoring
HIGHtools/file_packager.py625 if (isPthread || isWasmWorker) return;\n'''
HIGHtools/file_packager.py628 ret += " var isNode = globalThis.process && globalThis.process.versions && globalThis.process.versions.node && gl
HIGHtools/file_packager.py681 await Module['FS_preloadFile'](name, null, data, true, true, false, true);
HIGHtools/file_packager.py687 Module['FS_createDataFile'](name, null, data, true, true, true);
HIGHtools/file_packager.py861 if (result && PACKAGE_UUID === result['uuid']) {
HIGHtools/file_packager.py864 resolve(null);
HIGHtools/file_packager.py894 chunks.push(event.target.result);
HIGHtools/file_packager.py905 buffer = undefined;
HIGHtools/file_packager.py907 chunks = undefined;
HIGHtools/file_packager.py909 tempTyped = undefined;
HIGHtools/file_packager.py952 chunks.push(value);
HIGHtools/minimal_runtime_shell.py39 download_wasm = f"!WebAssembly.instantiateStreaming && binary('{target_basename}.wasm')"
HIGHtools/webidl_binder.py138 return (__class__ || WrapperObject).__cache__;
HIGHtools/webidl_binder.py148 ret = Object.create((__class__ || WrapperObject).prototype);
HIGHtools/webidl_binder.py231 ensureCache.temps.push(ret);
HIGHtools/webidl_binder.py496 body += "if(typeof {0} !== 'undefined' && {0} !== null) {{\n".format(js_arg)
HIGHtools/webidl_binder.py519 body += " if(typeof {0} !== 'undefined' && {0} !== null) {{ {0} = {0}.ptr }};\n".format(js_arg)
HIGHtools/webidl_binder.py537 body += f' if ({args[i]} === null) {args[i]} = 0;\n'
HIGHtools/webidl_binder.py573 body += ' if (%s === undefined) { %s_%s(%s)%s%s }\n' % (args[i], call_prefix, c_names[i],
HIGHtools/webidl_binder.py697 if (array_idx < 0 || array_idx >= array_size) {
HIGHtest/test_core.py7061 ret = ccall('print_int', null, ['number'], [12]); out(typeof ret);
HIGHtest/test_core.py7062 ret = ccall('print_float', null, ['number'], [14.56]); out(typeof ret);
HIGHtest/test_core.py7063 ret = ccall('print_bool', null, ['boolean'], [true]); out(typeof ret);
HIGHtest/test_core.py7064 ret = ccall('print_string', null, ['string'], ["cheez"]); out(typeof ret);
HIGHtest/test_core.py7065 ret = ccall('print_string', null, ['array'], [[97, 114, 114, 45, 97, 121, 0]]); out(typeof ret); // JS array
HIGHtest/test_core.py7066 ret = ccall('print_string', null, ['array'], [new Uint8Array([97, 114, 114, 45, 97, 121, 0])]); out(typeof ret); /
HIGHtest/test_core.py7084 ccall('call_ccall_again', null);
HIGHtest/test_core.py7098 var printBool = Module['cwrap']('print_bool', null, ['boolean']);
HIGHtest/test_core.py3694 assert(okk && faill);
HIGHtest/test_core.py5511 return test_files_input.charCodeAt(test_files_input_index++) || null;
HIGHtest/test_core.py5526 stdin: () => { return data.pop() || null },
HIGHtest/test_core.py8320 ccall('main', null, ['number', 'string'], [2, 'waka'], { async: true });
HIGHtest/test_core.py8360 ccall('floatf', 'number', null, null, { async: true }).then(function(arg) {
HIGHtest/test_core.py8552 create_file('b.out.js', 'WebAssembly = undefined;\n' + read_file('a.out.js'))
HIGHtest/test_core.py9067 # the bug is that createModule() returns undefined, instead of the
HIGHtest/test_jslib.py400extraLibraryFuncs.push('jsfunc');
HIGHtest/common.py1375 'a: loaded\na: b (prev: (null))\na: c (prev: b)\n', cflags=extra_args)
HIGHtest/common.py1405 'a: loaded\na: b (prev: (null))\na: c (prev: b)\n', cflags=extra_args)
HIGHtest/test_benchmark.py1157 files.push(x);
HIGHtest/test_browser.py3657 SharedArrayBuffer = undefined;
HIGHtest/test_browser.py3658 Atomics = undefined;
HIGHtest/test_browser.py780 const error = String(event instanceof ErrorEvent ? event.message : (event.reason || event));
HIGHtest/test_browser.py782 window.onerror = null;
HIGHtest/test_browser.py1074 gamepads.push({
HIGHtest/test_browser.py1106 gamepads.push({
HIGHtest/test_browser.py1149 gamepads.push(gamepad)
HIGHtest/test_browser.py2356 assert(e.toString().includes('Assertion failed')); // assertion, not something else
HIGHtest/test_browser.py2367 assert(e.toString().includes('Assertion failed')); // assertion, not something else
HIGHtest/test_browser.py2378 assert(e.toString().includes('Assertion failed')); // assertion, not something else
HIGHtest/test_browser.py2495 return preloadedWasm['/library.so'] !== undefined;
HIGHtest/test_browser.py4082 if (e.error && e.error.message.includes('unreachable'))
HIGHtest/test_browser.py1868 create_file('remove_setimmediate.js', 'globalThis.setImmediate = undefined;')
HIGHtest/test_browser.py1629 buffer.push(v);
HIGHtest/test_browser.py1646 Module.printErr = (s) => { self.postMessage({channel: "stderr", char: s, trace: ((doTrace && s === 10) ? new Error
HIGHtest/test_browser.py1646 Module.printErr = (s) => { self.postMessage({channel: "stderr", char: s, trace: ((doTrace && s === 10) ? new Error
HIGHtest/test_browser.py4148 create_file('pre0.js', 'WebAssembly.instantiateStreaming = undefined;')
HIGHtest/test_other.py1697Module['stdin'] = () => data.shift() || null;
16 more matches not shown…
Self-Referential Comments90 hits · 234 pts
SeverityFileLineSnippet
MEDIUMtools/config.py16# The following class can be overridden by the config file and/or
MEDIUMtools/js_manipulation.py137 # Create a try-catch guard that rethrows the Emscripten EH exception.
MEDIUMtools/building.py1285 # Create a settings file with the current settings to pass to the JS preprocessor
MEDIUMtools/system_libs.py2547 # Create a version header based on the emscripten-version.txt
MEDIUMtools/system_libs.py2564 # Create a stamp file that signal that the headers have been installed
MEDIUMtools/emscripten.py568 # Create a file with the contents of the sourceMappingURL section
MEDIUMtools/wasm-sourcemap.py286 # This function handles four cases:
MEDIUMtools/maint/create_release.py52 # Create a new git branch
MEDIUMtools/maint/update_website.py67 # Create a new branch and commit the changes.
MEDIUMtest/runner.py155 # Create a list of all known tests so that we can choose from them based on a wildcard search
MEDIUMtest/test_core.py4932 # Create a dependency on __cxa_find_matching_catch_6 (6 = num clauses + 2)
MEDIUMtest/common.py376 # Create the new test function. It calls the original function with the specified args.
MEDIUMtest/test_other.py11570 # Create a static library that contains a reference to an undefined symbol: bar
MEDIUMtest/test_other.py11668 # Create a library with no archive map
MEDIUMtest/browser_common.py370# Create a server and a web page. When a test runs, we tell the server about it,
MEDIUMtest/third_party/enet/ltmain.sh1229# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/enet/ltmain.sh1240# This function implements the same check as func_lalib_p without
MEDIUMtest/third_party/enet/ltmain.sh1263# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/enet/ltmain.sh1272# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/enet/ltmain.sh1297# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/enet/ltmain.sh1433# Create a libtool object file (analogous to a ".la" file),
MEDIUMtest/third_party/enet/ltmain.sh6028 # Create the object directory.
MEDIUMtest/third_party/enet/ltmain.sh8656 # Create the old-style object.
MEDIUMtest/third_party/enet/ltmain.sh8676 # Create an invalid libtool object if no PIC, so that we don't
MEDIUMtest/third_party/freetype/modules.cfg6# This file is part of the FreeType project, and may only be used, modified,
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh892# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh903# This function implements the same check as func_lalib_p without
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh926# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh935# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh963# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh1064# Create a libtool object file (analogous to a ".la" file),
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh4937 # Create the object directory.
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh7447 # Create the old-style object.
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh7467 # Create an invalid libtool object if no PIC, so that we don't
MEDIUMtest/third_party/freetype/src/tools/glnames.py12# This file is part of the FreeType project, and may only be used, modified,
MEDIUMtest/third_party/freetype/src/tools/docmaker/content.py4# This file contains routines used to parse the content of documentation
MEDIUMtest/third_party/freetype/src/tools/docmaker/utils.py11# This function is used to sort the index. It is a simple lexicographical
MEDIUMtest/third_party/bullet/ltmain.sh892# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/bullet/ltmain.sh902# This function implements the same check as func_lalib_p without
MEDIUMtest/third_party/bullet/ltmain.sh925# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/bullet/ltmain.sh934# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/bullet/ltmain.sh962# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/bullet/ltmain.sh1063# Create a libtool object file (analogous to a ".la" file),
MEDIUMtest/third_party/bullet/ltmain.sh4410 # Create the object directory.
MEDIUMtest/third_party/bullet/ltmain.sh6920 # Create the old-style object.
MEDIUMtest/third_party/bullet/ltmain.sh6940 # Create an invalid libtool object if no PIC, so that we don't
MEDIUMtest/third_party/poppler/ltmain.sh1228# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/poppler/ltmain.sh1239# This function implements the same check as func_lalib_p without
MEDIUMtest/third_party/poppler/ltmain.sh1262# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/poppler/ltmain.sh1271# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/poppler/ltmain.sh1296# This function is only a basic sanity check; it will hardly flush out
MEDIUMtest/third_party/poppler/ltmain.sh1432# Create a libtool object file (analogous to a ".la" file),
MEDIUMtest/third_party/poppler/ltmain.sh6015 # Create the object directory.
MEDIUMtest/third_party/poppler/ltmain.sh8634 # Create the old-style object.
MEDIUMtest/third_party/poppler/ltmain.sh8654 # Create an invalid libtool object if no PIC, so that we don't
MEDIUMtest/third_party/freealut/admin/autotools/ltmain.sh841 # Create a libtool object file (analogous to a ".la" file),
MEDIUMtest/third_party/freealut/admin/autotools/ltmain.sh1897 # Create the object directory.
MEDIUMtest/third_party/freealut/admin/autotools/ltmain.sh4111 # Create the old-style object.
MEDIUMtest/third_party/freealut/admin/autotools/ltmain.sh4141 # Create an invalid libtool object if no PIC, so that we don't
MEDIUMthird_party/WebIDL.py2472 # Create a new IDLValue to make sure that we have the
30 more matches not shown…
AI Slop Vocabulary76 hits · 208 pts
SeverityFileLineSnippet
MEDIUMtools/link.py555 # Due to the aforementioned lack of knowledge about the static data size, we delegate
LOWtools/building.py338 # which is set at 8191 characters. We could just use that, but it leads to
LOWtools/system_libs.py119 # In general, we simply use alphabetical order, but we special case certain
LOWtools/filelock.py117# If we would simply return *self*, the lock would be acquired again
MEDIUMtools/feature_matrix.py140 # This feature is not used anywhere else except the test harness to detect
LOWtools/response_file.py79 # just return original argument.
LOWtools/maint/rebaseline_tests.py38 # If `total` if not in the json dict then just use the first key. This happens when only one
LOWtest/clang_native.py76 # add anything here, so just return.
MEDIUMtest/canvas_animate_resize.c16// - If set, test WebGL context creation .explicitSwapControl=true and call emscripten_webgl_commit_frame() to swap. Ot
MEDIUMtest/test_core.py2090 # Tests that -sMINIMAL_RUNTIME builds can utilize -sALLOW_MEMORY_GROWTH option.
MEDIUMtest/test_manual_wasm_instantiate.html108 // application robust, you may want to override this behavior before shipping!
MEDIUMtest/parallel_testsuite.py159 # and the harness aborted.
LOWtest/parallel_testsuite.py277 # _exc_info_to_string to simply return it.
MEDIUMtest/canvas_animate_resize_shell.html46 // application robust, you may want to override this behavior before shipping!
LOWtest/common.py356 # No long lines found just return the unmodified output
MEDIUMtest/test_fflush.html119 // application robust, you may want to override this behavior before shipping!
MEDIUMtest/browser_common.py881 # the browser harness reported an error already, and sent a None to tell
MEDIUMtest/pthread/main_js_with_loader.html108 // application robust, you may want to override this behavior before shipping!
MEDIUMtest/pthread/test_pthread_mandelbrot_shell.html1258 // application robust, you may want to override this behavior before shipping!
MEDIUMtest/browser/test_preallocated_heap_shell.html110 // application robust, you may want to override this behavior before shipping!
MEDIUMtest/browser/test_preinitialized_webgl_context.html108 // application robust, you may want to override this behavior before shipping!
MEDIUMtest/browser/test_manual_download_data.html108 // application robust, you may want to override this behavior before shipping!
MEDIUMtest/browser/test_html5_fullscreen.html108 // application robust, you may want to override this behavior before shipping!
MEDIUMtest/third_party/enet/ltmain.sh397# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/enet/ltmain.sh3852# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/enet/ltmain.sh7681 # This code stresses the "libraries are programs" paradigm to its
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh210# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh2719# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/freetype/builds/unix/ltmain.sh6531 # This code stresses the "libraries are programs" paradigm to its
LOWtest/third_party/freetype/src/tools/docmaker/content.py187 # otherwise, simply add the line to the current
MEDIUMtest/third_party/bullet/ltmain.sh210# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/bullet/ltmain.sh2727# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/bullet/ltmain.sh6004 # This code stresses the "libraries are programs" paradigm to its
MEDIUM…BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp99 // @@@ this needs to be made more robust
MEDIUMtest/third_party/poppler/ltmain.sh401# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/poppler/ltmain.sh3849# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/poppler/ltmain.sh7660 # This code stresses the "libraries are programs" paradigm to its
MEDIUMtest/third_party/freealut/admin/autotools/ltmain.sh86# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMtest/third_party/freealut/admin/autotools/ltmain.sh3414 # This code stresses the "libraries are programs" paradigm to its
MEDIUMtest/third_party/freealut/admin/autotools/ltmain.sh4900# Sed substitution that helps us do robust quoting. It backslashifies
MEDIUMhtml/shell.html41 // application robust, you may want to override this behavior before shipping!
MEDIUMhtml/shell_minimal.html80 // application robust, you may want to override this behavior before shipping!
MEDIUMsystem/lib/libcxx/include/__iterator/iter_swap.h46 // NOLINTNEXTLINE(libcpp-robust-against-adl) iter_swap ADL calls should only be made through ranges::iter_swap
MEDIUMsystem/lib/libcxx/include/__iterator/iter_swap.h56 // NOLINTBEGIN(libcpp-robust-against-adl) iter_swap ADL calls should only be made through ranges::iter_swap
MEDIUMsystem/lib/libcxx/include/__iterator/iter_swap.h63 // NOLINTEND(libcpp-robust-against-adl)
MEDIUMsystem/lib/libcxx/include/__iterator/iter_move.h43 // NOLINTNEXTLINE(libcpp-robust-against-adl) iter_swap ADL calls should only be made through ranges::iter_swap
MEDIUMsystem/lib/libcxx/include/__iterator/iter_move.h62 // NOLINTBEGIN(libcpp-robust-against-adl) iter_move ADL calls should only be made through ranges::iter_move
MEDIUMsystem/lib/libcxx/include/__iterator/iter_move.h69 // NOLINTEND(libcpp-robust-against-adl)
MEDIUMsystem/lib/libcxx/include/__compare/weak_order.h36 // NOLINTBEGIN(libcpp-robust-against-adl) weak_order should use ADL, but only here
MEDIUMsystem/lib/libcxx/include/__compare/weak_order.h44 // NOLINTEND(libcpp-robust-against-adl)
MEDIUMsystem/lib/libcxx/include/__compare/partial_order.h34 // NOLINTBEGIN(libcpp-robust-against-adl) partial_order should use ADL, but only here
MEDIUMsystem/lib/libcxx/include/__compare/partial_order.h42 // NOLINTEND(libcpp-robust-against-adl)
MEDIUMsystem/lib/libcxx/include/__compare/strong_order.h43 // NOLINTBEGIN(libcpp-robust-against-adl) strong_order should use ADL, but only here
MEDIUMsystem/lib/libcxx/include/__compare/strong_order.h51 // NOLINTEND(libcpp-robust-against-adl)
MEDIUMsystem/lib/libcxx/include/__locale_dir/num.h36// NOLINTBEGIN(libcpp-robust-against-adl)
MEDIUMsystem/lib/libcxx/include/__locale_dir/num.h1068// NOLINTEND(libcpp-robust-against-adl)
MEDIUMsystem/lib/libcxx/src/filesystem/operations.cpp280 // as we can't utilize the fstream impl to copy empty files
MEDIUMsystem/lib/compiler-rt/lib/builtins/emutls.c388// A more robust solution would be to create a separate shared library for
MEDIUM…er-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp928// MonotonicNanoTime is a timing function that can leverage the vDSO by calling
MEDIUMsystem/lib/libc/musl/src/thread/pthread_mutex_trylock.c31#ifndef __EMSCRIPTEN__ // XXX Emscripten does not have a concept of multiple processes or kernel space, so robust mutex
16 more matches not shown…
Cross-File Repetition35 hits · 175 pts
SeverityFileLineSnippet
HIGHthird_party/ply/test/yacc_missing1.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_badargs.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_badtok.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_uprec2.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_term1.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_nop.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_badprec2.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_error4.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_notok.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_badid.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_nodoc.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_error1.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_badprec3.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_noerror.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_inf.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_badprec.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_sr.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_rr.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_error2.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_error3.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_uprec.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_simple.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_unused_rule.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_unused.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_dup.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_prec1.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/test/yacc_notfunc.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/example/optcalc/calc.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/example/unicalc/calc.py0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/doc/ply.html0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/doc/ply.html0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/doc/ply.html0expression : expression plus expression | expression minus expression | expression times expression | expression divide
HIGHthird_party/ply/example/calc/calc.py0expression : expression '+' expression | expression '-' expression | expression '*' expression | expression '/' expressi
HIGHthird_party/ply/example/calcdebug/calc.py0expression : expression '+' expression | expression '-' expression | expression '*' expression | expression '/' expressi
HIGHthird_party/ply/example/closurecalc/calc.py0expression : expression '+' expression | expression '-' expression | expression '*' expression | expression '/' expressi
Deep Nesting195 hits · 166 pts
SeverityFileLineSnippet
LOWemcc.py120
LOWemcc.py334
LOWemcc.py476
LOWembuilder.py199
LOWemrun.py319
LOWemrun.py350
LOWemrun.py756
LOWemrun.py942
LOWemrun.py1041
LOWemrun.py1090
LOWemrun.py1112
LOWemrun.py1137
LOWemrun.py1159
LOWemrun.py1184
LOWemrun.py1370
LOWemrun.py1429
LOWemrun.py1599
LOWemrun.py455
LOWemrun.py667
LOWtools/link.py311
LOWtools/link.py770
LOWtools/link.py795
LOWtools/link.py2502
LOWtools/link.py2650
LOWtools/link.py2904
LOWtools/link.py3053
LOWtools/link.py2543
LOWtools/emprofile.py71
LOWtools/extract_metadata.py264
LOWtools/config.py104
LOWtools/building.py153
LOWtools/building.py618
LOWtools/building.py776
LOWtools/building.py1073
LOWtools/system_libs.py193
LOWtools/system_libs.py2307
LOWtools/system_libs.py672
LOWtools/system_libs.py688
LOWtools/diagnostics.py69
LOWtools/emscripten.py277
LOWtools/emscripten.py305
LOWtools/emscripten.py639
LOWtools/emscripten.py854
LOWtools/emscripten.py918
LOWtools/emscripten.py954
LOWtools/emscripten.py1125
LOWtools/wasm-sourcemap.py399
LOWtools/wasm-sourcemap.py500
LOWtools/cmdline.py182
LOWtools/cmdline.py207
LOWtools/cmdline.py659
LOWtools/cmdline.py672
LOWtools/gen_struct_info.py172
LOWtools/js_optimizer.py152
LOWtools/filelock.py226
LOWtools/webassembly.py316
LOWtools/file_packager.py172
LOWtools/file_packager.py348
LOWtools/file_packager.py601
LOWtools/feature_matrix.py223
135 more matches not shown…
Hallucination Indicators10 hits · 120 pts
SeverityFileLineSnippet
CRITICALthird_party/socket.io.js2558 io.Transport.websocket.prototype.open.apply(self, args);
CRITICALthird_party/socket.io.js2575 io.Transport.websocket.prototype.send.apply(self, args);
CRITICALthird_party/socket.io.js2589 io.Transport.websocket.prototype.close.call(this);
CRITICALthird_party/socket.io.js3386 return io.Transport.XHR.prototype.close.call(this);
CRITICALthird_party/socket.io.js3500 io.Transport.XHR.prototype.open.call(self);
CRITICALthird_party/socket.io.js3566 io.Transport.XHR.prototype.onClose.call(this);
CRITICALsrc/lib/libproxyfs.js167 stream.nfd = stream.node.mount.opts.fs.open(path,stream.flags);
CRITICALsrc/lib/libproxyfs.js175 stream.node.mount.opts.fs.close(stream.nfd);
CRITICALsrc/lib/libproxyfs.js183 return stream.node.mount.opts.fs.read(stream.nfd, buffer, offset, length, position);
CRITICALsrc/lib/libproxyfs.js191 return stream.node.mount.opts.fs.write(stream.nfd, buffer, offset, length, position);
Excessive Try-Catch Wrapping72 hits · 61 pts
SeverityFileLineSnippet
MEDIUMemrun.py942def get_executable_version(filename):
MEDIUMemrun.py973def get_browser_build_date(filename):
MEDIUMemrun.py1041def get_computer_model():
MEDIUMemrun.py1112def get_system_memory():
LOWemrun.py340 except Exception:
LOWemrun.py360 except Exception as e:
LOWemrun.py373 except Exception as e:
LOWemrun.py792 except Exception as e:
LOWemrun.py886 except Exception as e:
LOWemrun.py897 except Exception as e:
LOWemrun.py904 except Exception as e:
LOWemrun.py926 except Exception:
LOWemrun.py968 except Exception as e:
LOWemrun.py981 except Exception as e:
LOWemrun.py989 except Exception as e:
LOWemrun.py1064 except Exception:
LOWemrun.py1085 except Exception as e:
LOWemrun.py1100 except Exception:
LOWemrun.py1108 except Exception:
LOWemrun.py1132 except Exception:
LOWemrun.py1336 except Exception:
LOWemrun.py1366 except Exception:
LOWemrun.py1387 except Exception:
LOWemrun.py1393 except Exception as e:
LOWemrun.py1438 except Exception:
LOWemrun.py1441 except Exception:
LOWemrun.py1796 except Exception as e:
LOWtools/config.py113 except Exception as e:
MEDIUMtools/building.py366def run_js_optimizer(filename, passes):
LOWtools/building.py488 except Exception as e:
LOWtools/building.py1113 except Exception as e:
LOWtools/cmdline.py200 except Exception:
LOWtools/cmdline.py785 except Exception as e:
LOWtools/cache.py79 except Exception as e:
LOWtools/shared.py305 except Exception as e:
LOWtools/shared.py342 except Exception as e:
LOWtools/shared.py519 except Exception as e:
MEDIUMtools/shared.py302def check_node_version():
MEDIUMtools/shared.py339def check_node():
LOWtools/file_packager.py148 except Exception:
LOWtools/toolchain_profiler.py75 except Exception:
LOWtools/toolchain_profiler.py86 except Exception as e:
LOWtools/toolchain_profiler.py97 except Exception as e:
LOWtools/maint/heuristic_clear_cache.py48 except Exception:
MEDIUMtools/maint/simde_update.py70 print(f"Error looking for place to insert {line_to_insert[:-1]!r}. Please update 'line_to_prefix' in simde_update.py
LOWtools/maint/simde_update.py83 except Exception:
LOWtest/test_stress.py59 except Exception as e:
LOWtest/runner.py582 except Exception:
LOWtest/jsrun.py67 except Exception as e:
LOWtest/jsrun.py110 except Exception:
LOWtest/test_core.py8716 except Exception as e:
LOWtest/test_core.py8444 except Exception:
LOWtest/test_benchmark.py96 except Exception as e:
LOWtest/test_benchmark.py421 except Exception:
LOWtest/test_benchmark.py427 except Exception:
LOWtest/test_browser.py1662 except Exception as e:
LOWtest/test_codesize.py151 except Exception:
LOWtest/browser_common.py650 except Exception:
LOWtest/browser_common.py661 except Exception:
MEDIUMtest/third_party/poppler/glib/demo/main.c321 g_print ("Error: no password provided\n");
12 more matches not shown…
Unused Imports46 hits · 46 pts
SeverityFileLineSnippet
LOW…s/scons/site_scons/site_tools/emscripten/emscripten.py7
LOW…ols/scons/site_scons/site_tools/emscripten/__init__.py7
LOW…ols/scons/site_scons/site_tools/emscripten/__init__.py7
LOW…t/third_party/freetype/src/tools/docmaker/formatter.py4
LOW…t/third_party/freetype/src/tools/docmaker/formatter.py5
LOW…t/third_party/freetype/src/tools/docmaker/formatter.py6
LOWtest/third_party/bullet/Demos/HelloWorld/parse.py1
LOWtest/third_party/poppler/poppler/gen-unicode-tables.py2
LOWsystem/lib/push_llvm_changes.py12
LOWsystem/lib/push_musl_changes.py11
LOWsystem/lib/update_compiler_rt.py7
LOWthird_party/ply/ply/cpp.py10
LOWthird_party/ply/test/yacc_badrule.py11
LOWthird_party/ply/test/yacc_missing1.py11
LOWthird_party/ply/test/yacc_badargs.py11
LOWthird_party/ply/test/yacc_uprec2.py11
LOWthird_party/ply/test/yacc_literal.py11
LOWthird_party/ply/test/yacc_term1.py11
LOWthird_party/ply/test/yacc_nop.py11
LOWthird_party/ply/test/yacc_badprec2.py11
LOWthird_party/ply/test/yacc_error4.py11
LOWthird_party/ply/test/yacc_badid.py11
LOWthird_party/ply/test/yacc_nodoc.py11
LOWthird_party/ply/test/yacc_misplaced.py11
LOWthird_party/ply/test/yacc_error1.py11
LOWthird_party/ply/test/yacc_badprec3.py11
LOWthird_party/ply/test/yacc_noerror.py11
LOWthird_party/ply/test/yacc_inf.py11
LOWthird_party/ply/test/yacc_badprec.py11
LOWthird_party/ply/test/yacc_sr.py11
LOWthird_party/ply/test/yacc_rr.py11
LOWthird_party/ply/test/yacc_error2.py11
LOWthird_party/ply/test/yacc_error3.py11
LOWthird_party/ply/test/yacc_uprec.py11
LOWthird_party/ply/test/yacc_simple.py11
LOWthird_party/ply/test/yacc_unused_rule.py11
LOWthird_party/ply/test/yacc_unused.py11
LOWthird_party/ply/test/yacc_dup.py11
LOWthird_party/ply/test/yacc_prec1.py11
LOWthird_party/ply/test/yacc_notfunc.py11
LOWthird_party/ply/example/ansic/cparse.py7
LOWthird_party/ply/example/ansic/cparse.py854
LOWthird_party/ply/example/BASIC/basparse.py4
LOWthird_party/ply/example/BASIC/basic.py10
LOWthird_party/ply/example/BASIC/basiclex.py3
LOWthird_party/ply/example/BASIC/basiclog.py18
Verbosity Indicators26 hits · 43 pts
SeverityFileLineSnippet
LOWtest/codesize/test_codesize_file_preload.expected.js12// We need to check if Module already exists (e.g. case 3 above).
LOWtest/codesize/test_codesize_minimal_O0.expected.js54// We need to check if Module already exists (e.g. case 3 above).
LOWtest/codesize/test_small_js_flags.expected.js10// We need to check if Module already exists (e.g. case 3 above).
LOWtest/third_party/box2d/Box2D/Dynamics/b2World.h100 /// The purpose of this function is to support sub-stepping. Sub-stepping is often used to maintain
LOWsystem/lib/libcxx/src/ryu/f2s.cpp172 // Step 2: Determine the interval of valid decimal representations.
LOWsystem/lib/libcxx/src/ryu/f2s.cpp179 // Step 3: Convert to a decimal power base using 64-bit arithmetic.
LOWsystem/lib/libcxx/src/ryu/f2s.cpp241 // Step 4: Find the shortest decimal representation in the interval of valid representations.
LOWsystem/lib/libcxx/src/ryu/f2s.cpp423 // Step 5: Print the decimal representation.
LOWsystem/lib/libcxx/src/ryu/f2s.cpp668 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.
LOWsystem/lib/libcxx/src/ryu/d2s.cpp198 // Step 2: Determine the interval of valid decimal representations.
LOWsystem/lib/libcxx/src/ryu/d2s.cpp206 // Step 3: Convert to a decimal power base using 128-bit arithmetic.
LOWsystem/lib/libcxx/src/ryu/d2s.cpp265 // Step 4: Find the shortest decimal representation in the interval of valid representations.
LOWsystem/lib/libcxx/src/ryu/d2s.cpp358 // Step 5: Print the decimal representation.
LOWsystem/lib/libcxx/src/ryu/d2s.cpp707 // Step 1: Decode the floating-point number, and unify normalized and subnormal cases.
LOW…b/llvm-libc/include/llvm-libc-macros/inttypes-macros.h118// only recent clang provides these macros, so we need to check if they are
LOWsystem/lib/llvm-libc/shared/rpc.h534 // Once we acquire the index we need to check if we are in a valid sending
LOW…stem/lib/llvm-libc/src/__support/OSUtil/linux/vdso.cpp115 // now we need to check if it has the right version
LOWsystem/lib/llvm-libc/src/string/string_utils.h65 // Step 1: read 1 byte at a time to align to block size
LOWsystem/lib/llvm-libc/src/string/string_utils.h71 // Step 2: read blocks
LOWsystem/lib/llvm-libc/src/string/string_utils.h76 // Step 3: find the zero in the block
LOWsystem/lib/llvm-libc/src/string/string_utils.h106 // Step 1: read 1 byte at a time to align to block size
LOWsystem/lib/llvm-libc/src/string/string_utils.h115 // Step 2: read blocks
LOWsystem/lib/llvm-libc/src/string/string_utils.h122 // Step 3: find the match in the block
LOWthird_party/ply/ply/yacc.py2373 # Step 1: Construct C = { I0, I1, ... IN}, collection of LR(0) items
LOWsrc/shell.js18// We need to check if Module already exists (e.g. case 3 above).
LOWsrc/lib/libeventloop.js210 // loop can run at a time. This variable stores the ordinal number of the
Slop Phrases21 hits · 36 pts
SeverityFileLineSnippet
LOWemrun.py1897 # Browser is no longer running, make sure to clean up the temp Firefox
MEDIUMtest/test_browser.py5426 # you may want to adjust "ITERATIONS".
MEDIUMtest/test_other.py3431 # JS tests you can use `EMBIND_TESTS=myregex` to run just the matching tests.
LOWtest/checksummer.c74 free(source); /* Don't forget to call free() later! */
LOWtest/test_sockets.py161 # make sure to use different ports in each one because it takes a while for the processes to be cleaned up
LOWtest/browser_common.py358 # and spaces are not escaped. But make sure to also support args, e.g.
MEDIUMtest/third_party/freetype/include/freetype/fterrors.h65 /* Here is a simple example: */
MEDIUMtest/third_party/freetype/include/freetype/freetype.h1063 /* probably never want this except for demonstration purposes. */
LOW…ird_party/freetype/include/freetype/internal/ftrfork.h36 /* Don't forget to increment the number if you add a new guessing rule. */
LOWtest/third_party/freetype/src/sfnt/ttsbit.c1231 /* don't forget to multiply `x_offset' by `map->pix_bits' as */
LOWtest/third_party/freetype/src/cid/cidload.c224 /* don't forget to set a few defaults */
LOWtest/third_party/freetype/src/autofit/afglobal.c34/* when updating this table, don't forget to update
LOWtest/third_party/freetype/src/autofit/aftypes.h274 /* add new scripts here. Don't forget to update the list in */
LOWtest/third_party/openjpeg/libopenjpeg/t2.c759 /* don't forget to release pi */
LOW…ulletDynamics/ConstraintSolver/btConeTwistConstraint.h260 // note: don't forget to enableMotor()
MEDIUMtest/third_party/box2d/Box2D/Common/b2Settings.cpp37// You can modify this to use your logging facility.
MEDIUM…party/poppler/glib/reference/html/PopplerDocument.html1306Here is a simple example of some code that walks the full index:
MEDIUM…party/poppler/glib/reference/html/PopplerDocument.html1520Here is a simple example of code to scan fonts in a document
LOW…/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp264 // When adding a new architecture, don't forget to also update
LOW…ib/compiler-rt/lib/sanitizer_common/sanitizer_common.h788// When adding a new architecture, don't forget to also update
MEDIUMsrc/settings.js1039// as mentioned earlier. If that is in a read-only directory, you may need
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippet
HIGHsystem/lib/compiler-rt/lib/asan/asan_rtl.cpp569// Initialize as requested from some part of ASan runtime library (interceptors,
HIGHsystem/lib/compiler-rt/lib/asan/asan_rtl.cpp682// Initialize as requested from instrumented application code.
HIGHsrc/Fetch.js196 // Convert to ArrayBuffer as requested by responseType.
HIGHsrc/Fetch.js217 // Convert to ArrayBuffer as requested by responseType
Redundant / Tautological Comments16 hits · 20 pts
SeverityFileLineSnippet
LOWtest/common.py399 # Check if a member of the new class has _parameterize, the tag inserted by @parameterized.
LOWtest/test_other.py3131 # Verify if the given file name contains a source map
LOWtest/test_other.py15224 # Check if functions are correctly assigned and split with the specified
LOWtest/third_party/enet/ltmain.sh2593 # Check if any of the arguments is a wrapper script.
LOWtest/third_party/enet/ltmain.sh8382 # Loop over the list of objects to be linked.
LOWtest/third_party/freetype/builds/unix/ltmain.sh1710 # Check if any of the arguments is a wrapper script.
LOWtest/third_party/freetype/builds/unix/ltmain.sh7179 # Loop over the list of objects to be linked.
LOWtest/third_party/bullet/ltmain.sh1709 # Check if any of the arguments is a wrapper script.
LOWtest/third_party/bullet/ltmain.sh6652 # Loop over the list of objects to be linked.
LOWtest/third_party/poppler/ltmain.sh2592 # Check if any of the arguments is a wrapper script.
LOWtest/third_party/poppler/ltmain.sh8360 # Loop over the list of objects to be linked.
LOWtest/third_party/freealut/admin/autotools/ltmain.sh3925 # Loop over the list of objects to be linked.
LOWtest/third_party/freealut/admin/autotools/ltmain.sh5989 # Check if any of the arguments is a wrapper script.
LOWthird_party/ply/ply/yacc.py2044 # Loop over the items in C and each grammar symbols
LOWthird_party/ply/doc/makedoc.py191# Write the file back out
LOWthird_party/ply/doc/ply.html2870 p[0] = some_value # Assign value to seen_A
Fake / Example Data9 hits · 14 pts
SeverityFileLineSnippet
LOWtest/ascii_corpus.txt1Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed posuere interdum sem. Quisque ligula eros ullamcorper quis
LOWtest/ascii_corpus.txt1Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed posuere interdum sem. Quisque ligula eros ullamcorper quis
LOWtest/ascii_corpus.txt11Donec nec dui, in viverra tristique sapien. Suspendisse tincidunt consequat ante. Vestibulum ante ipsum primis in faucib
LOWtest/ascii_corpus.txt13Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed posuere interdum sem. Quisque ligula eros ullamcorper quis
LOWtest/ascii_corpus.txt13Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed posuere interdum sem. Quisque ligula eros ullamcorper quis
LOWtest/ascii_corpus.txt23Donec nec dui, in viverra tristique sapien. Suspendisse tincidunt consequat ante. Vestibulum ante ipsum primis in faucib
LOWtest/ascii_corpus.txt25Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed posuere interdum sem. Quisque ligula eros ullamcorper quis
LOWtest/ascii_corpus.txt25Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed posuere interdum sem. Quisque ligula eros ullamcorper quis
LOWtest/ascii_corpus.txt35Donec nec dui, in viverra tristique sapien. Suspendisse tincidunt consequat ante. Vestibulum ante ipsum primis in faucib
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOW…mpiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h25// Usage example:
LOW…ib/llvm-libc/src/__support/FPUtil/except_value_utils.h29// Example usage:
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWtools/webassembly.py62 def helper(self, *args, **kwargs):