- 0
Sign in to follow this
Followers
0
[YLD-29651] Unable to instantiate a new instance of a class that has paramaters
Submitted by
Shadow72
Submitted by
Shadow72
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