4 ms·
function ConstructorFunction() { if (!(this instanceof ConstructorFunction)) throw new Error("new keyword required"); ... }
by tracker1 14y ago
function ConstructorFunction() {
if (!(this instanceof ConstructorFunction))
throw new Error("new keyword required");
...
}