Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed May 10, 2024
1 parent cdc9d63 commit 5471efd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
44 changes: 22 additions & 22 deletions test/new-for-builtins.mjs
Expand Up @@ -232,30 +232,30 @@ test.snapshot({
'const foo = new String()',
'const foo = new Symbol()',
outdent`
function varCheck() {
{
var WeakMap = function() {};
}
// This should not reported
return WeakMap()
function varCheck() {
{
var WeakMap = function() {};
}
function constCheck() {
{
const Array = function() {};
}
return Array()
}
function letCheck() {
{
let Map = function() {};
}
return Map()
// This should not reported
return WeakMap()
}
function constCheck() {
{
const Array = function() {};
}
`,
outdent`
function foo() {
return(globalThis).Map()
return Array()
}
function letCheck() {
{
let Map = function() {};
}
`
return Map()
}
`,
outdent`
function foo() {
return(globalThis).Map()
}
`,
],
});
2 changes: 1 addition & 1 deletion test/throw-new-error.mjs
Expand Up @@ -64,6 +64,6 @@ test.snapshot({
function foo() {
return[globalThis][0].Error('message');
}
`
`,
],
});

0 comments on commit 5471efd

Please sign in to comment.