Safe Haskell | None |
---|---|
Language | Haskell98 |
- newtype Object = Object JSVal
- create :: IO Object
- allProps :: Object -> IO JSArray
- listProps :: Object -> IO [JSString]
- getProp :: JSString -> Object -> IO JSVal
- unsafeGetProp :: JSString -> Object -> IO JSVal
- setProp :: JSString -> JSVal -> Object -> IO ()
- unsafeSetProp :: JSString -> JSVal -> Object -> IO ()
- isInstanceOf :: Object -> JSVal -> Bool
Documentation
getProp :: JSString -> Object -> IO JSVal Source
get a property from an object. If accessing the property results in an exception, the exception is converted to a JSException. Since exception handling code prevents some optimizations in some JS engines, you may want to use unsafeGetProp instead
isInstanceOf :: Object -> JSVal -> Bool Source