| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e99e456 commit 931d31a
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | 37 | # Reset this number to 0 on major V8 upgrades. | |
| 38 | 38 | # Increment by one for each non-official patch applied to deps/v8. | |
| 39 | - 'v8_embedder_string': '-node.39', | ||
| 39 | + 'v8_embedder_string': '-node.40', | ||
| 40 | 40 | ||
| 41 | 41 | ##### V8 defaults for Node.js ##### | |
| 42 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1862,6 +1862,8 @@ Handle<BigInt> MutableBigInt::RightShiftByAbsolute(Isolate* isolate, | |||
| 1862 | 1862 | DCHECK_LE(result_length, length); | |
| 1863 | 1863 | Handle<MutableBigInt> result = New(isolate, result_length).ToHandleChecked(); | |
| 1864 | 1864 | if (bits_shift == 0) { | |
| 1865 | + // Zero out any overflow digit (see "rounding_can_overflow" above). | ||
| 1866 | + result->set_digit(result_length - 1, 0); | ||
| 1865 | 1867 | for (int i = digit_shift; i < length; i++) { | |
| 1866 | 1868 | result->set_digit(i - digit_shift, x->digit(i)); | |
| 1867 | 1869 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + // Copyright 2020 the V8 project authors. All rights reserved. | ||
| 2 | + // Use of this source code is governed by a BSD-style license that can be | ||
| 3 | + // found in the LICENSE file. | ||
| 4 | + | ||
| 5 | + // Flags: --allow-natives-syntax | ||
| 6 | + | ||
| 7 | + for (let i = 0, j = 0; i < 10; ++i) { | ||
| 8 | + let x = (-0xffffffffffffffff_ffffffffffffffffn >> 0x40n); | ||
| 9 | + assertEquals(-0x10000000000000000n, x); | ||
| 10 | + %SimulateNewspaceFull(); | ||
| 11 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments