You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
375 B

/*---
{
"skip": true
}
---*/
/*===
FIXME
===*/
print('object constructor as function');
function constructorAsFunctionTest() {
}
try {
constructorAsFunctionTest();
} catch (e) {
print(e.name);
}
/*===
FIXME
===*/
print('object constructor as constructor');
function constructorTest() {
}
try {
constructorTest();
} catch (e) {
print(e.name);
}