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.
22 lines
267 B
22 lines
267 B
/*
|
|
* https://github.com/svaarala/duktape/issues/122
|
|
*/
|
|
|
|
/*===
|
|
true
|
|
true
|
|
===*/
|
|
|
|
function test() {
|
|
var re1 = /\0/;
|
|
print(re1.test('\u0000'));
|
|
|
|
var re2 = /[\0]/;
|
|
print(re2.test('\u0000'));
|
|
}
|
|
|
|
try {
|
|
test();
|
|
} catch (e) {
|
|
print(e.stack || e);
|
|
}
|
|
|