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.
87 lines
796 B
87 lines
796 B
/*
|
|
* Test error object lineNumber properties.
|
|
*
|
|
* Edit this file carefully, line numbers and expected values must match.
|
|
*/
|
|
|
|
/*---
|
|
{
|
|
"custom": true
|
|
}
|
|
---*/
|
|
|
|
/* 10 tests */
|
|
|
|
/*===
|
|
29
|
|
35
|
|
41
|
|
47
|
|
53
|
|
59
|
|
65
|
|
71
|
|
77
|
|
83
|
|
===*/
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
try {
|
|
foo;
|
|
} catch (e) {
|
|
print(e.lineNumber);
|
|
}
|
|
|
|
|