Anytime I try to instantiate a new instance of a custom class that has parameters in it's constructor I get "UNKNOWN INTERNAL ERROR 454".
class TestClass {
constructor() { }
}
class TestClass2 {
constructor(name) {
this.name = name;
}
}
function SomeFunction() {
let aClass = new TestClass();
let bClass = new TestClass2("Bob");
}
Creating a new instance of TestClass works but creating a new instance of TestClass2 gives a error.
Anytime I try to instantiate a new instance of a custom class that has parameters in it's constructor I get "UNKNOWN INTERNAL ERROR 454".
class TestClass { constructor() { } } class TestClass2 { constructor(name) { this.name = name; } } function SomeFunction() { let aClass = new TestClass(); let bClass = new TestClass2("Bob"); }
Creating a new instance of TestClass works but creating a new instance of TestClass2 gives a error.
Edited by Shadow72Share this post
Link to post
Share on other sites