BaristaLabs / BaristaCore

BaristaCore is a framework for providing a serverless platform using ChakraCore and .Net Core
MIT License
28 stars 3 forks source link

Fix issue with TryGetBean when the JsObject is not a true JsObject #44

Closed Oceanswave closed 6 years ago

Oceanswave commented 6 years ago

There's some confusion between JsObject and things like JsString, which are objects, when supplied to certain Object.xxx methods cause an exception.

A workaround is to manually test that the jsObj.Value == JavaScriptValueType.Object