Skip to content

Commit b1a1622

Browse files
alexamybevacqua
authored andcommittedMar 13, 2019
Fix 'Scheme validation with proxies' part: (#70)
* proper access to Map property through 'get' * dont return validation function result, just pass validation*
1 parent 2b234a6 commit b1a1622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎ch06.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const validations = new Map()
205205
const validator = {
206206
set(target, key, value) {
207207
if (validations.has(key)) {
208-
return validations[key](value)
208+
validations.get(key)(value)
209209
}
210210
return Reflect.set(target, key, value)
211211
}

0 commit comments

Comments
 (0)
Please sign in to comment.