Skip to content

Commit

Permalink
add class fields test for chrome bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb authored and JLHwung committed Mar 30, 2023
1 parent ba88ddc commit 303880e
Show file tree
Hide file tree
Showing 2 changed files with 347 additions and 171 deletions.
29 changes: 29 additions & 0 deletions data-es2016plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -5604,6 +5604,35 @@ exports.tests = [
rhino1_7_13: false
}
},
{
name: 'static class fields use [[Define]]',
exec: function () { /*
return (class X { static name = "name"; }).name === 'name';
*/},
res: {
chrome73: true,
chrome90: true,
chrome94: true,
chrome97: false,
firefox95: true,
firefox96: true,
node11_0: false,
node12_0: true,
node12_5: true,
node12_9: true,
node12_11: true,
node13_0: true,
node13_2: true,
node14_0: true,
node14_5: true,
node14_6: true,
node15_0: true,
node16_0: true,
node16_9: true,
node16_11: true,
safari15: true
}
},
{
name: 'private static class fields',
mdn: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_elements#Private_static_fields',
Expand Down
Loading

0 comments on commit 303880e

Please sign in to comment.