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

Unified Diff: qunit/common.js

Issue 5721433737003008: Issue 1985 - Replaced __proto__ with Object.create() and Object.getPrototypeOf() (Closed)
Patch Set: Created Feb. 11, 2015, 11:51 a.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 | « options.js ('k') | safari/ext/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: qunit/common.js
===================================================================
--- a/qunit/common.js
+++ b/qunit/common.js
@@ -28,9 +28,9 @@
function prepareFilterComponents(keepListeners)
{
FilterStorage.subscriptions = [];
- FilterStorage.knownSubscriptions = {__proto__: null};
- Subscription.knownSubscriptions = {__proto__: null};
- Filter.knownFilters = {__proto__: null};
+ FilterStorage.knownSubscriptions = Object.create(null);
+ Subscription.knownSubscriptions = Object.create(null);
+ Filter.knownFilters = Object.create(null);
defaultMatcher.clear();
ElemHide.clear();
@@ -42,7 +42,7 @@
function preparePrefs()
{
- this._pbackup = {__proto__: null};
+ this._pbackup = Object.create(null);
for (var pref in Prefs)
if (Prefs.__lookupSetter__(pref))
this._pbackup[pref] = Prefs[pref];
« no previous file with comments | « options.js ('k') | safari/ext/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld