コード例 #1
0
        protected override object InnerGetVariableValue(string variableName)
        {
            object result;

            try
            {
                result = _jsEngine.GetVariableValue(variableName);
            }
            catch (OriginalJsRuntimeException e)
            {
                throw ConvertMsieJsRuntimeExceptionToJsRuntimeException(e);
            }

            result = MapToHostType(result);

            return(result);
        }
コード例 #2
0
        protected override object InnerGetVariableValue(string variableName)
        {
            object result;

            try
            {
                result = _jsEngine.GetVariableValue(variableName);
            }
            catch (OriginalException e)
            {
                throw WrapJsException(e);
            }

            result = MapToHostType(result);

            return(result);
        }