Skip to content

Commit 0a84738

Browse files
committed
shiritori/functions: add Object.entries shim
wanakana 3.1 introduces usage of Objects.entries w/ WaniKani/WanaKana@0b8318b and needs the shim to work w/ older version of node.js. Change-Id: I03bfc0172b484af6607aa05157b6068a6d82054e
1 parent d50ded2 commit 0a84738

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

functions/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
'use strict';
1616

17+
const entries = require('object.entries');
18+
if (!Object.entries) {
19+
entries.shim();
20+
}
21+
1722
const { DialogflowApp } = require('actions-on-google');
1823
const functions = require('firebase-functions');
1924
const shiritori = require('./shiritori');

0 commit comments

Comments
 (0)