ghcjs-base-stub-0.3.0.2: 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
IsJSVal Object Source # 
Instance details

Defined in JavaScript.Object.Internal

Methods

jsval_ :: Object -> JSVal

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