module JavaScript.Object.Internal
( Object(..)
, create
, listProps
, getProp
, unsafeGetProp
, setProp
, unsafeSetProp
) where
import Language.Javascript.JSaddle.Types (JSM, JSVal, Object(..), JSString)
import Language.Javascript.JSaddle.Native.Internal
(newEmptyObject, propertyNames, getPropertyByName, setPropertyByName)
create :: JSM Object
create :: JSM Object
create = JSM Object
newEmptyObject
{-# INLINE create #-}
listProps :: Object -> JSM [JSString]
listProps :: Object -> JSM [JSString]
listProps = Object -> JSM [JSString]
propertyNames
{-# INLINE listProps #-}
getProp :: JSString -> Object -> JSM JSVal
getProp :: JSString -> Object -> JSM JSVal
getProp = JSString -> Object -> JSM JSVal
unsafeGetProp
{-# INLINE getProp #-}
unsafeGetProp :: JSString -> Object -> JSM JSVal
unsafeGetProp :: JSString -> Object -> JSM JSVal
unsafeGetProp = JSString -> Object -> JSM JSVal
getPropertyByName
{-# INLINE unsafeGetProp #-}
setProp :: JSString -> JSVal -> Object -> JSM ()
setProp :: JSString -> JSVal -> Object -> JSM ()
setProp = JSString -> JSVal -> Object -> JSM ()
unsafeSetProp
{-# INLINE setProp #-}
unsafeSetProp :: JSString -> JSVal -> Object -> JSM ()
unsafeSetProp :: JSString -> JSVal -> Object -> JSM ()
unsafeSetProp = JSString -> JSVal -> Object -> JSM ()
setPropertyByName
{-# INLINE unsafeSetProp #-}