Skip to content

Commit

Permalink
replace repeated underscore placeholders in initialize of var, which …
Browse files Browse the repository at this point in the history
…are not valid ecmascript (python style leaking)
  • Loading branch information
bmaranville committed May 18, 2020
1 parent 5b94fc0 commit d096be4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions esm/dataobjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class DataObjects {
let dtype_class = dtype[0]
for (var i=0; i<count; i++) {
if (dtype_class == 'VLEN_STRING') {
var [_, _, character_set] = dtype;
let character_set = dtype[2];
var [vlen, vlen_data] = this._vlen_size_and_data(buf, offset);
let fmt = '<' + vlen.toFixed() + 's';
let str_data = struct.unpack_from(fmt, vlen_data, 0)[0];
Expand Down Expand Up @@ -566,7 +566,7 @@ export class DataObjects {
return ref_addresses;
}
else if (dtype_class == 'VLEN_STRING') {
var [_, _, character_set] = this.dtype;
let character_set = this.dtype[2];
var value = [];
for (var i=0; i<fullsize; i++) {
var [vlen, vlen_data] = this._vlen_size_and_data(this.fh, data_offset);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@usnistgov/jsfive",
"version": "0.1.9",
"version": "0.2.1",
"description": "A pure javascript HDF5 file reader, based on pyfive",
"main": "index.js",
"module": "index.js",
Expand Down

0 comments on commit d096be4

Please sign in to comment.