Jump to content
  • 0
Sign in to follow this  
Shadow72

RESOLVED [YLD-29651] Unable to instantiate a new instance of a class that has paramaters

Question

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 Shadow72

Share this post


Link to post
Share on other sites

2 replies to this bug / suggestion

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×