Status: Untriaged
Owner: ----
New issue 4220 by [email protected]: Unchecked use of built-ins in
String.prototype.normalize
https://code.google.com/p/v8/issues/detail?id=4220
Version: 7142b0d211b732e1c119fded80f43fbbd9cea0f8
What steps will reproduce the problem?
1. Run in d8
d8> "".normalize()
""
d8> delete Array.prototype.indexOf
true
d8> "".normalize()
(d8):1: TypeError: "".normalize is not a function
2. Run in d8
d8> "".normalize("invalid")
RangeError: The normalization form should be one of NFC, NFD, NFKC, NFKD.
d8> delete Array.prototype.join
true
d8> "".normalize("invalid")
(d8):1: TypeError: "".normalize is not a function
What is the expected output?
- String.prototype.normalize should work even when Array.prototype.indexOf
or Array.prototype.join is deleted
What do you see instead?
- TypeErrors are thrown
Affects for both implementations (string.js and i18n.js).
--
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.