dx: warn private fields usage

This commit is contained in:
Evan You
2019-03-01 10:28:29 -05:00
parent 93744d5889
commit fa2240143c
3 changed files with 18 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ import { warn } from './warning'
const bindCache = new WeakMap()
// TODO: bound methods should also capture/handle errors
function getBoundMethod(fn: Function, target: any, receiver: any): Function {
let boundMethodsForTarget = bindCache.get(target)
if (boundMethodsForTarget === void 0) {