i didn't realize the situation with rhino was so dire. this barely qualifies as a js runtime.
i remember shit like strings crossing the boundary from java into js are objects that behave like strings but are not instanceof String, but i had no idea how truly bad it was in here
oho, this error has a line number! and is complaining about...a const declaration in an if block...............ok so apparently const is not block scoped in rhino??