Skip to content

Commit c597fa7

Browse files
committed
Fix use of BitString module
1 parent f876c05 commit c597fa7

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

lib/tailored.js

Lines changed: 8 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailored",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"description": "Pattern matching library",
55
"main": "lib/tailored.js",
66
"jsnext:main": "src/index.js",

src/tailored/comprehensions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { match_or_default } from "./defmatch";
2-
import { BitString } from "erlang-types";
2+
import ErlangTypes from "erlang-types";
33

44
const NO_MATCH = Symbol();
55

@@ -92,6 +92,6 @@ export function bitstring_comprehension(expression, generators) {
9292
}
9393
}
9494

95-
result = result.map(x => BitString.integer(x));
96-
return new BitString(...result);
95+
result = result.map(x => ErlangTypes.BitString.integer(x));
96+
return new ErlangTypes.BitString(...result);
9797
}

0 commit comments

Comments
 (0)