mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
Define console.log builtin for JavaScript
This commit is contained in:
parent
970431306a
commit
e621816358
@ -142,7 +142,6 @@ class HasPrelude (language :: Language) where
|
||||
instance HasPrelude 'Go
|
||||
instance HasPrelude 'Haskell
|
||||
instance HasPrelude 'Java
|
||||
instance HasPrelude 'JavaScript
|
||||
instance HasPrelude 'PHP
|
||||
|
||||
builtInPrint :: ( AbstractIntro value
|
||||
@ -170,6 +169,10 @@ instance HasPrelude 'Ruby where
|
||||
instance HasPrelude 'TypeScript
|
||||
-- FIXME: define console.log using __semantic_print
|
||||
|
||||
instance HasPrelude 'JavaScript where
|
||||
definePrelude _ = do
|
||||
defineNamespace "console" $ do
|
||||
define "log" (lambda builtInPrint)
|
||||
|
||||
-- Effects
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user