Skip to content

Commit 35e5fa4

Browse files
committed
Fix errors in TNodejsFile implementation
Was not tested for a while
1 parent c43bf75 commit 35e5fa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/JSRoot.io.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ JSROOT.define(['rawinflate'], () => {
24332433

24342434
return new Promise((resolve,reject) =>
24352435

2436-
this.fs.open(filename, 'r', (status, fd) => {
2436+
this.fs.open(this.fFileName, 'r', (status, fd) => {
24372437
if (status) {
24382438
console.log(status.message);
24392439
return reject(Error(`Not possible to open ${filename} inside node.js`));
@@ -2462,7 +2462,7 @@ JSROOT.define(['rawinflate'], () => {
24622462

24632463
let cnt = 0, blobs = [];
24642464

2465-
function readfunc(err, bytesRead, buf) {
2465+
let readfunc = (err, bytesRead, buf) => {
24662466

24672467
let res = new DataView(buf.buffer, buf.byteOffset, place[cnt + 1]);
24682468
if (place.length === 2) return resolve(res);

0 commit comments

Comments
 (0)