fix compile error
This commit is contained in:
parent
cdad71c057
commit
2322b4bd64
1 changed files with 4 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue