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

Safe HaskellNone
LanguageHaskell2010

JavaScript.Object.Internal

Synopsis

Documentation

newtype Object #

Constructors

Object JSVal 
Instances
IsJSVal Object # 
Instance details

Defined in JavaScript.Object.Internal

Methods

jsval_ :: Object -> JSVal

create :: IO Object #

create an empty object

getProp :: JSString -> Object -> IO JSVal #

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

setProp :: JSString -> JSVal -> Object -> IO () #