Skip to content

Commit

Permalink
Fix CannedIDB params
Browse files Browse the repository at this point in the history
We were passing an extra parameter to this.dump(), but the older
compiler version didn't understand the use of "this" in static
methods, so it didn't catch the mistake.  This removes the extra
parameter.

This was caught by a compiler upgrade.

Issue #2528

Change-Id: I15fcd79dff270bde2dbb35f5da02a9c9a4173407
  • Loading branch information
joeyparrish committed Apr 29, 2020
1 parent df213d8 commit 41fd008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test/util/canned_idb.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ shaka.test.CannedIDB = class {
* database later in a call to restoreJSON().
*/
static async dumpJSON(name, dummyArrayBuffers) {
const savedDatabase = await this.dump(name, dummyArrayBuffers);
const savedDatabase = await this.dump(name);
const replacer =
(key, value) => this.replacer_(dummyArrayBuffers, key, value);
return JSON.stringify(savedDatabase, replacer);
Expand Down

0 comments on commit 41fd008

Please sign in to comment.