kristianhasselknippe / tsce

TypeScript to Emacs Lisp transpiler
MIT License
7 stars 0 forks source link

Object literal doesnt work with functions #13

Closed kristianhasselknippe closed 5 years ago

kristianhasselknippe commented 5 years ago
//[Form: ert-deftest]
function shortHandObjectNotationWithFunction(){
    function foo() {
        return 'bar'
    }
    const baz = {
        foo
    }
    should(equal(baz.foo(), 'bar'))
}

gives

Test short-hand-object-notation-with-function condition:
    (void-variable foo)