name

fun name(cx: Context, scope: Scriptable, name: String): Any?(source)

Looks name up through the scope chain, the way a bare identifier does.