mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
Add console.log builtin for TypeScript
This commit is contained in:
parent
fbac72665c
commit
60ebfb6863
@ -167,8 +167,10 @@ instance HasPrelude 'Ruby where
|
||||
defineClass "Object" [] $ do
|
||||
define "inspect" (lambda (const (box (string "<object>"))))
|
||||
|
||||
instance HasPrelude 'TypeScript
|
||||
-- FIXME: define console.log using __semantic_print
|
||||
instance HasPrelude 'TypeScript where
|
||||
definePrelude _ =
|
||||
defineNamespace "console" $ do
|
||||
define "log" (lambda builtInPrint)
|
||||
|
||||
instance HasPrelude 'JavaScript where
|
||||
definePrelude _ = do
|
||||
|
Loading…
Reference in New Issue
Block a user