name

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

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