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.
25 lines
346 B
25 lines
346 B
11 years ago
|
/*===
|
||
|
9
|
||
|
true on line 12
|
||
|
constructor on line 16
|
||
|
getter on line 21
|
||
|
123
|
||
|
===*/
|
||
|
|
||
|
print(Duktape.line())
|
||
|
|
||
|
if (true) {
|
||
|
print("true on line", Duktape.line())
|
||
|
}
|
||
|
|
||
|
function MyConstructor() {
|
||
|
print("constructor on line", Duktape.line());
|
||
|
}
|
||
|
new MyConstructor();
|
||
|
|
||
|
var obj = {
|
||
|
get x() { print('getter on line', Duktape.line()); return 123; }
|
||
|
}
|
||
|
print(obj.x);
|
||
|
|