Bug 1399217 - Disable wasm disassembly for non-binary source. r=jlast

MozReview-Commit-ID: KEyyOjyKXPF
This commit is contained in:
Yury Delendik 2017-09-12 13:57:31 -05:00
Родитель f86d1e915d
Коммит 3614bb831d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -551,7 +551,7 @@ Editor.prototype = {
setText: function (value) { setText: function (value) {
let cm = editors.get(this); let cm = editors.get(this);
if (typeof value !== "string") { // wasm? if (typeof value !== "string" && "binary" in value) { // wasm?
// binary does not survive as Uint8Array, converting from string // binary does not survive as Uint8Array, converting from string
let binary = value.binary; let binary = value.binary;
let data = new Uint8Array(binary.length); let data = new Uint8Array(binary.length);