Skip to content

Commit df91b1f

Browse files
committed
Fixed failing IE8 test case
1 parent 1d99442 commit df91b1f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/oneof.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ function OneOf(name, fieldNames, options) {
3636

3737
/**
3838
* Field names that belong to this oneof.
39-
* @type {Array.<string>}
39+
* @type {string[]}
4040
*/
4141
this.oneof = fieldNames || []; // toJSON, marker
4242

4343
/**
4444
* Fields that belong to this oneof and are possibly not yet added to its parent.
45-
* @type {Array.<Field>}
45+
* @type {Field[]}
4646
* @private
4747
*/
4848
this._fields = [];

tests/oneof.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tape.test("oneofs", function(test) {
1414
num: 1
1515
});
1616
test.equal(message.num, 1, "should initialize the last value");
17-
test.equal(message.kind, "num", "should reference the last value");
17+
test.equal(message.getKind(), "num", "should reference the last value");
1818
message.setKind('num');
1919
test.notOk(message.hasOwnProperty('str'), "should delete other values");
2020

0 commit comments

Comments
 (0)