Logo
Explore Help
Sign In
1berry/nodejs
1
0
Fork 0
You've already forked nodejs
Code Issues Packages Projects Releases Wiki Activity
nodejs/test/parallel/test-vm-create-context-circular-reference.js

14 lines
237 B
JavaScript
Raw Normal View History

test: enable linting for tests Enable linting for the test directory. A number of changes was made so all tests conform the current rules used by lib and src directories. The only exception for tests is that unreachable (dead) code is allowed. test-fs-non-number-arguments-throw had to be excluded from the changes because of a weird issue on Windows CI. PR-URL: https://github.com/nodejs/io.js/pull/1721 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-05-19 13:00:06 +02:00
'use strict';
test: remove unnecessary assignments common.js needs to be loaded in all tests so that there is checking for variable leaks and possibly other things. However, it does not need to be assigned to a variable if nothing in common.js is referred to elsewhere in the test. PR-URL: https://github.com/nodejs/node/pull/4408 Reviewed-By: James M Snell <jasnell@gmail.com>
2015-12-23 16:02:12 -08:00
require('../common');
Fixes the circular reference in vm modules. Fixes the circular reference problem. Closes GH-822.
2011-03-31 16:55:26 +02:00
var assert = require('assert');
var vm = require('vm');
var sbx = {};
sbx.window = sbx;
sbx = vm.createContext(sbx);
sbx.test = 123;
Fixed a lot of jslint errors. Fixes #1831
2011-10-04 18:08:18 -04:00
assert.equal(sbx.window.window.window.window.window.test, 123);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 1759ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API