compatibility with therubyracer's execution environment