ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.Object

Synopsis

Documentation

data Object Source #

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