Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simple __proto__ injection test

  • Loading branch information...
commit 72e96d9de02532fb772dd8b4f0d218b74eb1f304 1 parent b321c32
@dominictarr authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 test/__proto__.js
View
17 test/__proto__.js
@@ -0,0 +1,17 @@
+'use strict';
+
+var next = process.nextTick
+
+var crdt = require('..')
+var a = require('assertions')
+
+exports.test = function (t) {
+
+ var doc = new crdt.Doc()
+ var r = Math.random()
+ var row = doc.add({})
+ row.set('__proto__', {WHAT: r})
+ t.equal(row.get('WHAT'), null)
+ t.end()
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.