зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1399217 - Disable wasm disassembly for non-binary source. r=jlast
MozReview-Commit-ID: KEyyOjyKXPF
This commit is contained in:
Родитель
f86d1e915d
Коммит
3614bb831d
|
@ -551,7 +551,7 @@ Editor.prototype = {
|
|||
setText: function (value) {
|
||||
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
|
||||
let binary = value.binary;
|
||||
let data = new Uint8Array(binary.length);
|
||||
|
|
Загрузка…
Ссылка в новой задаче