Fixing bug with constructor.

This commit is contained in:
Adsooi 2022-01-02 00:25:14 +01:00
parent c9ba5c03f0
commit 7663b31788
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

2
oop.sh
View file

@ -91,7 +91,7 @@ _createObject() {
type=$1
associatedFile=$2
varName=$3
constructorArguments=${@:4}
constructorArguments="${@:4}"
# Declare dummy constructor.
eval "$varName.constructor() { :; }"