code: public static void setLocalVar(ExecutionContext context, String name, Object value) {
          LexicalEnvironment localEnv = context.getLexicalEnvironment();
          localEnv.getRecord().createMutableBinding(context, name, false);
          localEnv.getRecord().setMutableBinding(context, name, value, false);
      }
docs: A convenience for module providers. Sets a scoped variable on the provided
  ExecutionContext.
  
  @param context The execution context to bind the variable to
  @param name The name of the variable
  @param value The value to set the variable to