Reviewers: ihab.awad, Description: If a property name has a newline in it, then it fails to be enumerated by a for-in loop.
Please review this at http://codereview.appspot.com/4602055/ Affected files: M src/com/google/caja/es53.js Index: src/com/google/caja/es53.js =================================================================== --- src/com/google/caja/es53.js (revision 4499) +++ src/com/google/caja/es53.js (working copy) @@ -1064,8 +1064,8 @@ } var endsWith__ = /__$/; - var endsWith_e___ = /(.*?)_e___$/; - var endsWith_v___ = /(.*?)_v___$/; + var endsWith_e___ = /([\s\S]*?)_e___$/; + var endsWith_v___ = /([\s\S]*?)_v___$/; var startsWithNUM___ = /^NUM___/; function assertValidPropertyName(P) {
