Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/subscriptionClasses.js

Issue 29339071: Issue 3873 - Replace object literals using __proto__ with Object.create(null) (Closed)
Patch Set: Created March 24, 2016, 5:26 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/filterClasses.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/subscriptionClasses.js
===================================================================
--- a/test/subscriptionClasses.js
+++ b/test/subscriptionClasses.js
@@ -32,7 +32,7 @@
subscription.serialize(result);
test.equal(result.sort().join("\n"), expected.sort().join("\n"), url);
- let map = {__proto__: null};
+ let map = Object.create(null);
for (let line of result.slice(1))
{
if (/(.*?)=(.*)/.test(line))
« no previous file with comments | « test/filterClasses.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld