Skip to content

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

@JacksonBowe

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" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions