code: static boolean isValidSimpleName(String name) {
      return TokenStream.isJSIdentifier(name)
          && !TokenStream.isKeyword(name)
          // no Unicode escaped characters - some browsers are less tolerant
          // of Unicode characters that might be valid according to the
          // language spec.
          // Note that by this point, Unicode escapes have been converted
          // to UTF-16 characters, so we're only searching for character
          // values, not escapes.
          && isLatin(name);
    }
docs: Determines whether the given name is a valid variable name.