This patch adds js_nan() for constructing a NaN value. You can check if a Value is NaN with Value::is_nan().