|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
669 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | // Note: This file is replaced with "read-wasm-browser.js" when this module is
|
|---|
| 4 | // bundled with a packager that takes package.json#browser fields into account.
|
|---|
| 5 |
|
|---|
| 6 | const fs = require("fs");
|
|---|
| 7 | const path = require("path");
|
|---|
| 8 |
|
|---|
| 9 | module.exports = function readWasm() {
|
|---|
| 10 | return new Promise((resolve, reject) => {
|
|---|
| 11 | const wasmPath = path.join(__dirname, "mappings.wasm");
|
|---|
| 12 | fs.readFile(wasmPath, null, (error, data) => {
|
|---|
| 13 | if (error) {
|
|---|
| 14 | reject(error);
|
|---|
| 15 | return;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | resolve(data.buffer);
|
|---|
| 19 | });
|
|---|
| 20 | });
|
|---|
| 21 | };
|
|---|
| 22 |
|
|---|
| 23 | module.exports.initialize = _ => {
|
|---|
| 24 | console.debug(
|
|---|
| 25 | "SourceMapConsumer.initialize is a no-op when running in node.js"
|
|---|
| 26 | );
|
|---|
| 27 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.