'use strict';

var callable = require('es5-ext/object/valid-callable')

module.exports = function (normalizer) {
	if (typeof normalizer === 'function') return { set: normalizer, get: normalizer };
	normalizer = { get: callable(normalizer.get) };
	if (normalizer.set !== undefined) {
		normalizer.set = callable(normalizer.set);
		normalizer.delete = callable(normalizer.delete);
		normalizer.clear = callable(normalizer.clear);
		return normalizer;
	}
	normalizer.set = normalizer.get;
	return normalizer;
};

@@ -92,17 +92,21 @@
 nction (
-n
+userN
 ormalize
@@ -110,16 +110,33 @@
 izer) %7B%0A
+%09var normalizer;%0A
 %09if (typ
@@ -139,17 +139,21 @@
 (typeof 
-n
+userN
 ormalize
@@ -180,25 +180,29 @@
 turn %7B set: 
-n
+userN
 ormalizer, g
@@ -205,17 +205,21 @@
 r, get: 
-n
+userN
 ormalize
@@ -245,33 +245,37 @@
 %7B get: callable(
-n
+userN
 ormalizer.get) %7D
@@ -281,17 +281,21 @@
 %7D;%0A%09if (
-n
+userN
 ormalize
@@ -337,33 +337,37 @@
 .set = callable(
-n
+userN
 ormalizer.set);%0A
@@ -389,33 +389,37 @@
 lete = callable(
-n
+userN
 ormalizer.delete
@@ -451,17 +451,21 @@
 allable(
-n
+userN
 ormalize

Fix normalizer resolution