Skip to content

Commit ca8f33a

Browse files
committed
fix proxy handler set trap return value
1 parent 26f883b commit ca8f33a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/node/node-wsh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class WindowsScriptingHost extends EventEmitter {
4444
const encodedValue = this.wsh.#encode( value);
4545
const output = JSON.parse( this.wsh.#syncline.exchange( JSON.stringify( [ 'set', encodedTarget, encodedProp, encodedValue])));
4646
switch( output[ 0]) {
47-
case 'set': return;
47+
case 'set': return true;
4848
case 'error': throw new Error( output[ 1]);
4949
default: throw new Error( `unknown status: ${ output[ 0]}`);
5050
}

0 commit comments

Comments
 (0)