Skip to content

Bug: Maps can't be defined with variable keys #46

Description

@JacksonBowe

Trying to write the most basic of basic TBEL scripts. It's the most painful programming language I've ever experienced.

Can't wrap my head around the below behavior for example:

// Doesn't work
var x = 'hello';
var mapAdd = { x: 'hi' };
// Output: { "x": "hi" }

    
// Works
var x = 'hello';
var mapAdd = {};
mapAdd.put(x, 'hi');
// Output: { "hello": "hi" }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions