Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Object
- create :: IO Object
- getProp :: JSString -> Object -> IO JSVal
- unsafeGetProp :: JSString -> Object -> IO JSVal
- setProp :: JSString -> JSVal -> Object -> IO ()
- unsafeSetProp :: JSString -> JSVal -> Object -> IO ()
- allProps :: Object -> IO JSArray
- listProps :: Object -> IO [JSString]
- 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