-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ufuzz failure #4805
Comments
Looks like V8 bug: $ cat test.js
console.log({
...{
0: "PASS",
set 0(v) {},
},
});
console.log({
...{
set 1(v) {},
1: "PASS",
},
});
console.log({
...{
a: "PASS",
set a(v) {},
},
});
console.log({
...{
set b(v) {},
b: "PASS",
},
}); $ cat test.js | node
{ '0': undefined }
{ '1': undefined }
{ a: undefined }
{ b: 'PASS' } Since Firefox gives more consistent behaviour: >> [[ test.js ]]
> Object { 0: undefined }
> Object { 1: "PASS" }
> Object { a: undefined }
> Object { b: "PASS" } |
Not even quite consistent without V8 itself: console.log({
0: "PASS",
...{
set 0(v) {},
},
});
console.log({
...{
set 1(v) {},
},
1: "PASS",
});
console.log({
a: "PASS",
...{
set a(v) {},
},
});
console.log({
...{
set b(v) {},
},
b: "PASS",
});
Setter on the outer layer: console.log({
...{
0: "PASS",
},
set 0(v) {},
});
console.log({
set 1(v) {},
...{
1: "PASS",
},
});
console.log({
...{
a: "PASS",
},
set a(v) {},
});
console.log({
set b(v) {},
...{
b: "PASS",
},
}); $ cat test.js | node
{ '0': [Setter] }
{ '1': 'PASS' }
{ a: [Setter] }
{ b: 'PASS' } |
Simple redefinition for completeness: console.log({
...{
0: "PASS",
0: void 0,
},
});
console.log({
...{
1: void 0,
1: "PASS",
},
});
console.log({
...{
a: "PASS",
a: void 0,
},
});
console.log({
...{
b: void 0,
b: "PASS",
},
}); $ cat test.js | node
{ '0': undefined }
{ '1': 'PASS' }
{ a: undefined }
{ b: 'PASS' } |
alexlamsl
added a commit
to alexlamsl/UglifyJS
that referenced
this issue
Mar 20, 2021
alexlamsl
added a commit
to alexlamsl/UglifyJS
that referenced
this issue
Mar 20, 2021
alexlamsl
added a commit
that referenced
this issue
Mar 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: