From c3f06c3c09b023a090f48519b2bae696e6f39fb6 Mon Sep 17 00:00:00 2001 From: Greg Brail <gbrail@users.noreply.github.com> Date: Thu, 24 Oct 2024 23:44:51 -0700 Subject: [PATCH] Fix a zombie comment --- .../org/mozilla/javascript/optimizer/Bootstrapper.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rhino/src/main/java/org/mozilla/javascript/optimizer/Bootstrapper.java b/rhino/src/main/java/org/mozilla/javascript/optimizer/Bootstrapper.java index 104c8bc94f..4d0fdfc7b5 100644 --- a/rhino/src/main/java/org/mozilla/javascript/optimizer/Bootstrapper.java +++ b/rhino/src/main/java/org/mozilla/javascript/optimizer/Bootstrapper.java @@ -35,9 +35,8 @@ public class Bootstrapper { static { // Set up the linkers DynamicLinkerFactory factory = new DynamicLinkerFactory(); - // Check the list of type-based linkers first, and fall back to the - // default linker, which will always work by falling back to - // generic ScriptRuntime methods. + // The const-aware-linker will only bind a few operations, and everything + // else will fall back to the default linker, which will always bind. factory.setPrioritizedLinkers(new ConstAwareLinker(), new DefaultLinker()); linker = factory.createLinker(); } @@ -45,7 +44,7 @@ public class Bootstrapper { /** This is the method called by every call site in the bytecode to map it to a function. */ @SuppressWarnings("unused") public static CallSite bootstrap(MethodHandles.Lookup lookup, String name, MethodType mType) - throws NoSuchMethodException, IllegalAccessException { + throws NoSuchMethodException { Operation op = parseOperation(name); // ChainedCallSite lets a call site have a few options for complex situations return linker.link(new ChainedCallSite(new CallSiteDescriptor(lookup, op, mType)));