int CJS_Value::ToInt() const { return JS_ToInt32(m_isolate, m_pValue); }
CJS_Value::operator int() const { return JS_ToInt32(m_pValue); }