summaryrefslogtreecommitdiff
path: root/test/parallel/test-vm-create-context-circular-reference.js
blob: 248ef24f69ca077a6c096ecc936be035fddf2f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
require('../common');
var assert = require('assert');
var vm = require('vm');

var sbx = {};
sbx.window = sbx;

sbx = vm.createContext(sbx);

sbx.test = 123;

assert.equal(sbx.window.window.window.window.window.test, 123);