1
1
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:
Rick Winfrey 2018-07-06 10:36:57 -07:00
parent fbac72665c
commit 60ebfb6863

View File

@ -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