function scuttle(globalRef, opts) {
  const scuttleOpts = generateScuttleOpts(globalRef, opts)

  if (scuttleOpts.enabled) {
    if (!isArray(scuttleOpts.exceptions)) {
      throw new Error(
        `LavaMoat - exceptions must be an array, got ${typeof scuttleOpts.exceptions}`
      )
    }
    scuttleOpts.scuttlerFunc(globalRef, (realm) =>
      performScuttleGlobalThis(realm, scuttleOpts.exceptions)
    )
  }
}
Applies scuttling, with the default set of options, including using Snow if
passed in as scuttlerFunc. Scuttle globalThis right after we used it to
create the root package compartment.

@param {GlobalRef} globalRef - Reference to the global object.
@param {ScuttleOpts} opts - Scuttling options.