This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: include context in circular reference tests
- Loading branch information
Showing
2 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
/*1* KEEP THIS CODE AT THE TOP TO AVOID LINE NUMBER CHANGES */ /* jshint shadow:true */ | ||
/*2*/'use strict'; | ||
/*3*/module.exports.foo = function () { | ||
/*4*/ const a = {}; | ||
/*5*/ const b = { a }; | ||
/*6*/ a.b = b; | ||
/*7*/ return a; | ||
/*8*/} | ||
/* 1* KEEP THIS CODE AT THE TOP TO AVOID LINE NUMBER CHANGES */ /* jshint shadow:true */ | ||
/* 2*/'use strict'; | ||
/* 3*/module.exports.foo = function () { | ||
/* 4*/ const a = {}; | ||
/* 5*/ const b = { a, c: this }; | ||
/* 6*/ a.b = b; | ||
/* 7*/ this.x = this; | ||
/* 8*/ this.y = a; | ||
/* 9*/ return this; | ||
/*10*/} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters