ghcjs-base-stub-0.1.0.4: Allow GHCJS projects to compile under GHC and develop using intero.

Safe HaskellNone
LanguageHaskell2010

JavaScript.Object.Internal

Synopsis

Documentation

newtype Object Source #

Constructors

Object JSVal 

Instances

create :: IO Object Source #

create an empty object

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