Skip to content

Map.String is not clonable #8

@pbiggar

Description

@pbiggar

When attempting to send a Map.String.t to a web worker, I got an error:

Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': function caml_compare(_a, _b) {
  while(true) {
    var b = _b;
    var a = _a;
    if (a === b) {
      return...<omitted>...
} could not be cloned.

This was not the case in 0.0.7. I think the difference is that StrDict in 0.0.7 was a Belt.MapString, which had a built-in comparator.

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