Pass a JSContext to ToJSValConvertible::to_jsval.
Replace str_to_jsval and domstring_to_jsval with a JSValConvertible implementation.
Checkpoint work.
Checkpoint.
Working work.