intl-segmenter-polyfill
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -63,3 +63,3 @@ "use strict"; | ||
if (WebAssembly.instantiateStreaming != null) { | ||
return WebAssembly.instantiateStreaming(wasm, imports); | ||
return wasm.then(function (response) { return WebAssembly.instantiateStreaming(response, imports); }); | ||
} | ||
@@ -66,0 +66,0 @@ return wasm |
{ | ||
"name": "intl-segmenter-polyfill", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "This repo builds .wasm module using icu4c for breaking text into words, so that we can polyfill [Intl Segmenter Proposal](https://github.com/tc39/proposal-intl-segmenter) with full compatibility, even on browsers that do not expose v8BreakIterator api.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -23,3 +23,3 @@ const BREAK_TYPES = { | ||
if (WebAssembly.instantiateStreaming != null) { | ||
return WebAssembly.instantiateStreaming(wasm, imports) | ||
return wasm.then(response => WebAssembly.instantiateStreaming(response, imports)) | ||
} | ||
@@ -26,0 +26,0 @@ |
1146227