mirror of https://github.com/svaarala/duktape.git
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.
39 lines
375 B
39 lines
375 B
12 years ago
|
|
||
|
/*---
|
||
|
{
|
||
|
"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);
|
||
|
}
|
||
|
|
||
|
|