Skip to content

Commit

Permalink
Fixed failing IE8 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Dec 7, 2016
1 parent 1d99442 commit df91b1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/oneof.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ function OneOf(name, fieldNames, options) {

/**
* Field names that belong to this oneof.
* @type {Array.<string>}
* @type {string[]}
*/
this.oneof = fieldNames || []; // toJSON, marker

/**
* Fields that belong to this oneof and are possibly not yet added to its parent.
* @type {Array.<Field>}
* @type {Field[]}
* @private
*/
this._fields = [];
Expand Down
2 changes: 1 addition & 1 deletion tests/oneof.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tape.test("oneofs", function(test) {
num: 1
});
test.equal(message.num, 1, "should initialize the last value");
test.equal(message.kind, "num", "should reference the last value");
test.equal(message.getKind(), "num", "should reference the last value");
message.setKind('num');
test.notOk(message.hasOwnProperty('str'), "should delete other values");

Expand Down

0 comments on commit df91b1f

Please sign in to comment.