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.
24 lines
310 B
24 lines
310 B
12 years ago
|
/*---
|
||
|
{
|
||
|
"skip": true
|
||
|
}
|
||
|
---*/
|
||
|
|
||
|
var re;
|
||
|
var t;
|
||
|
|
||
|
/* FIXME: non-ascii values for every operator */
|
||
|
|
||
|
/*===
|
||
|
2
|
||
|
8
|
||
|
===*/
|
||
|
|
||
|
/* Test that lastIndex is correct (in characters) even for a non-ASCII string. */
|
||
|
|
||
|
re = /foo(...)/g;
|
||
|
t = re.exec('\u1234\uabcdfoo\u4321\u1234\u4321quux');
|
||
|
print(t.index);
|
||
|
print(re.lastIndex);
|
||
|
|