Commit f3f730a1 authored by Matthew Gaudet's avatar Matthew Gaudet
Browse files

Bug 1833545 - Mark shortestPaths as a fuzzing-unsafe function r=sfink

parent 5bc65aa6
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -9353,17 +9353,6 @@ JS_FOR_WASM_FEATURES(WASM_FEATURE, WASM_FEATURE, WASM_FEATURE)
"  element's edge is the node of the i+1'th array element; the destination of\n"
"  the last array element is implicitly |target|.\n"),

    JS_FN_HELP("shortestPaths", ShortestPaths, 3, 0,
"shortestPaths(targets, options)",
"  Return an array of arrays of shortest retaining paths. There is an array of\n"
"  shortest retaining paths for each object in |targets|. Each element in a path\n"
"  is of the form |{ predecessor, edge }|. |options| may contain:\n"
"  \n"
"    maxNumPaths: The maximum number of paths returned in each of those arrays\n"
"      (default 3).\n"
"    start: The object to start all paths from. If not given, then\n"
"      the starting point will be the set of GC roots."),

#if defined(DEBUG) || defined(JS_JITSPEW)
    JS_FN_HELP("dumpObject", DumpObject, 1, 0,
"dumpObject()",
@@ -9688,6 +9677,18 @@ JS_FN_HELP("getEnvironmentObjectType", GetEnvironmentObjectType, 1, 0,
"getEnvironmentObjectType(env)",
"  Return a string represents the type of given environment object."),

    JS_FN_HELP("shortestPaths", ShortestPaths, 3, 0,
"shortestPaths(targets, options)",
"  Return an array of arrays of shortest retaining paths. There is an array of\n"
      "  shortest retaining paths for each object in |targets|. Each element in a path\n"
      "  is of the form |{ predecessor, edge }|. |options| may contain:\n"
      "  \n"
      "    maxNumPaths: The maximum number of paths returned in each of those arrays\n"
      "      (default 3).\n"
      "    start: The object to start all paths from. If not given, then\n"
      "      the starting point will be the set of GC roots."),


    JS_FS_HELP_END
};
// clang-format on