[PATCH 6/7] jscript: Properly handle passing undefined value to Number.toPrecision.