doTest("object", "typeof /foo/;");
}
private void doTest(String expected, final String script)
{
final ContextAction action = new ContextAction()
{
public Object run(final Context context)
{
final Scriptable scope = context.initStandardObjects();
return context.evaluateString(scope, script, "test script", 1, null);