Thanks to visit codestin.com
Credit goes to github.com

Skip to content

No run time error when using a function or other prohibited data type as a map key #323

Open
@flimzy

Description

@flimzy

As of commit 8b46201, the jsbuiltin package test suite fails with:

--- FAIL: TestTypeOf (0.00s)

/tmp/test.587825356:1441
    throw err;
            ^
TypeError: Object function (v) { this.$val = v; } has no method 'keyFor'
    at $ifaceKeyFor (/tmp/test.587825356:477:29)
    at $makeMap (/tmp/test.587825356:1017:7)
    at $packages.github.com/gopherjs/jsbuiltin.TestTypeOf [as F] (/tmp/test.587825356:21400:10)
    at $packages.testing.tRunner (/tmp/test.587825356:20644:13)
    at $goroutine (/tmp/test.587825356:1431:19)
    at $runScheduled [as _onTimeout] (/tmp/test.587825356:1469:7)
    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
FAIL    github.com/gopherjs/jsbuiltin   0.214s

I haven't investigated further yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions