static fromConstant(script) {
    const scriptString = Const.unwrap(script);
    if (scriptString.length === 0) {
      return SafeScript.EMPTY;
    }
    return SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(
        scriptString);
  }
Creates a SafeScript object from a compile-time constant string.

@param {!Const} script A compile-time-constant string from which to create
    a SafeScript.
@return {!SafeScript} A SafeScript object initialized to `script`.
@deprecated Use the `safevalues.safeScript` template literal builder
    instead.