tcg bug master / 4.0.0 v8 operation >>> and |=
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
vm guest is linux, executed with tcg
running this Node.js snippet leads to
$ node
> a = undefined
undefined
> a >>> 0
4294967295
host node
$ node
> a = undefined
undefined
> a >>> 0
0
same with |=
node
Welcome to Node.js v12.4.0.
Type ".help" for more information.
> let buffer
undefined
> buffer |= 0
0
vm with tcg:
$ ./out/Release/node --version
v12.4.0
./out/Release/node -e "let buffer; buffer |= 0; console.
-1
vm guest is debian x86_64 latest release
vm guest is started with ./x86_64-
git tag v4.0.0 and master, commit a578cdfbdd8f9be
Node.js is compiled on the vm guest (v12.4.0 / master)
see also
https:/
I need further assistance to track down the cause of the bug.
Kind regards
Manuel
description: | updated |
This might be the same underlying problem as LP:1815423 which also mentions some issues with Javascript calculations involving arithmetic operations on a js "undefined" value. That bug has a C-only reproduce case so is probably a good place to start for anybody interesting in investigating and fixing it.