Javascript Inconsistent Behavior Of The Url Constructor Between

Javascript Inconsistent Behavior Of The Url Constructor Between