Skip to content

Commit 0a8b7b0

Browse files
author
Tony Crisci
committed
fix bus name validator for ProxyObject
fixes #27
1 parent 6912ae2 commit 0a8b7b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/client/proxy-object.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {Variant} = require('../variant');
55
const {Message} = require ('../message-type');
66
const { DBusError } = require('../errors');
77
const {
8-
assertInterfaceNameValid,
8+
assertBusNameValid,
99
assertObjectPathValid,
1010
isObjectPathValid,
1111
isInterfaceNameValid
@@ -32,7 +32,7 @@ class ProxyObject {
3232
* directly. Use {@link MessageBus#getProxyObject} to get a proxy object.
3333
*/
3434
constructor(bus, name, path) {
35-
assertInterfaceNameValid(name);
35+
assertBusNameValid(name);
3636
assertObjectPathValid(path);
3737
/**
3838
* The {@link MessageBus} this name belongs to.

0 commit comments

Comments
 (0)