on master help sign in
Encourage use of jsg by removing the MakeObjectRef instance for String.
commitd3f2bf27c68161d0280ac168e7674a1f1be8dde3 authorHamish Mackenzie <Hamish.K.Mackenzie@googlemail.com> dateTue 12 Feb 2013, 01:10 (14 years ago) parentc974c63
1 file changed−6
src/Language/Javascript/JSC/Object.hs−6
src/Language/Javascript/JSC/Object.hs−6
@@ -298,12 +298,6 @@ array = rethrow . makeArray
298298global :: JSC JSObjectRef
299299global = ask >>= (liftIO . jscontextgetglobalobject)
300300
301−-- | A string on its own is assumed to be the name of a property in the global object
302−instance MakeObjectRef String where
303− makeObjectRef name = do
304− this <- global
305− rethrow (objGetPropertyByName this (makeStringRef name)) >>= valToObject
306−
307301-- | Get an array containing the property names present on a given object
308302copyPropertyNames :: MakeObjectRef this => this -> JSC JSPropertyNameArrayRef
309303copyPropertyNames this = do