@@ -12,7 +12,7 @@ function assert(actual, expected, message) {
1212 ', expected |' + expected + '|' + ( message ? ' (' + message + ')' : '' ) ) ;
1313}
1414
15- /** id not exists -> should located at id */
15+ /** id not exists -> should be located at id */
1616function test_line_column1 ( ) {
1717 try {
1818 eval ( `'【';A;` ) ;
@@ -23,7 +23,7 @@ function test_line_column1() {
2323}
2424
2525/**
26- * memeber call should locate at id:
26+ * memeber call should be located at id:
2727 * a.b.c() and c is null -> c will be located
2828 */
2929function test_line_column2 ( ) {
@@ -39,7 +39,7 @@ a.b.c.d();
3939}
4040
4141/**
42- * memeber call should locate at id:
42+ * memeber call should be located at id:
4343 * a.b.c() and b is null -> c will be located
4444 */
4545function test_line_column3 ( ) {
@@ -54,7 +54,7 @@ a.f.c.d();
5454 }
5555}
5656
57- /** if id not exists -> should located at id */
57+ /** if id not exists -> should be located at id */
5858function test_line_column4 ( ) {
5959 try {
6060 eval ( `(function(){'use strict';a;}());` ) ;
@@ -64,7 +64,7 @@ function test_line_column4() {
6464 }
6565}
6666
67- /** if id not exists -> should located at id */
67+ /** if id not exists -> should be located at id */
6868function test_line_column5 ( ) {
6969 try {
7070 eval ( `'【';1+1;new A();` ) ;
@@ -74,7 +74,7 @@ function test_line_column5() {
7474 }
7575}
7676
77- /** new call should located at 'new' */
77+ /** new call should be located at 'new' */
7878function test_line_column6 ( ) {
7979 try {
8080 eval ( `'【';1+1;throw new Error();` ) ;
@@ -85,7 +85,7 @@ function test_line_column6() {
8585}
8686
8787/**
88- * normal call should locate at function name:
88+ * normal call should be located at function name:
8989 * a() and a is null or occur error -> a will be located
9090 */
9191function test_line_column7 ( ) {
@@ -97,7 +97,8 @@ function test_line_column7() {
9797 }
9898}
9999
100- /** if comment is first line,
100+ /**
101+ * if comment is first line,
101102 * the line number of one line should be locate at next line
102103 */
103104function test_line_column8 ( ) {
0 commit comments