fix compile error

This commit is contained in:
Joao Moreno 2018-06-08 14:42:38 +02:00
parent cdad71c057
commit 2322b4bd64

View file

@ -195,6 +195,10 @@ export class Code {
) {
this.driver = new Proxy(driver, {
get(target, prop, receiver) {
if (typeof prop === 'symbol') {
throw new Error('Invalid usage');
}
if (typeof target[prop] !== 'function') {
return target[prop];
}