Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)