Skip to content

Commit 6290280

Browse files
authored
Remove arrow functions (benjamn#303)
1 parent b38ea33 commit 6290280

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/runtime/entry.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function createSnapshot(entry, name, newValue) {
299299
var newKeys = [];
300300

301301
if (name === "*") {
302-
safeKeys(newValue).forEach(keyOfValue => {
302+
safeKeys(newValue).forEach(function (keyOfValue) {
303303
// Evaluating value[key] is risky because the property might be
304304
// defined by a getter function that logs a deprecation warning (or
305305
// worse) when evaluated. For example, Node uses this trick to display
@@ -321,7 +321,9 @@ function createSnapshot(entry, name, newValue) {
321321
var oldSnapshot = entry.snapshots[name];
322322
if (
323323
oldSnapshot &&
324-
newKeys.every(key => oldSnapshot[key] === newSnapshot[key]) &&
324+
newKeys.every(function (key) {
325+
return oldSnapshot[key] === newSnapshot[key]
326+
}) &&
325327
newKeys.length === Object.keys(oldSnapshot).length
326328
) {
327329
return oldSnapshot;
@@ -372,7 +374,7 @@ function forEachSetter(entry, names, callback) {
372374
names = Object.keys(entry.setters);
373375
}
374376

375-
names.forEach(name => {
377+
names.forEach(function (name) {
376378
// Ignore setters asking for module.exports.__esModule.
377379
if (name === "__esModule") return;
378380

@@ -400,7 +402,7 @@ function forEachSetter(entry, names, callback) {
400402
var keys = consumeKeysGivenSnapshot(entry, name, snapshot);
401403
if (keys === void 0) return;
402404

403-
keys.forEach(key => {
405+
keys.forEach(function (key) {
404406
var setter = settersByKey[key];
405407
if (!setter) {
406408
return;

0 commit comments

Comments
 (0)