Status: Untriaged
Owner: ----
New issue 4147 by [email protected]: Regexp.prototype.exec with a frozen
regexp silently fails to update lastIndex instead of throwing
https://code.google.com/p/v8/issues/detail?id=4147
Version: 9633ebabd405c264d33f603f8798c31f59418dcd
OS: Mac
Architecture: x64
What steps will reproduce the problem?
var regex = /0/g;
Object.freeze(regex);
var str = "abc000";
print(JSON.stringify(Object.getOwnPropertyDescriptor(regex, "lastIndex")));
regex.exec(str);
print(JSON.stringify(Object.getOwnPropertyDescriptor(regex, "lastIndex")));
What is the expected output? Exception thrown when
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexpbuiltinexec
tries to change the lastIndex property.
What do you see instead? No exception thrown, lastIndex silently not
updated.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.