diff options
author | Matheus Marchini <mmarchini@netflix.com> | 2020-03-27 11:08:42 -0700 |
---|---|---|
committer | Matheus Marchini <mmarchini@netflix.com> | 2020-04-03 21:55:19 -0700 |
commit | 3052769bbc222fb5972cd90ca81b5102fb676360 (patch) | |
tree | 25ddbf66fbe4f5c5f7586e842af4efdd5e1b8ba7 /deps/v8/test/unittests | |
parent | 05841335c5d209efe6e249a57f3798d5c1154a8f (diff) | |
download | node-new-3052769bbc222fb5972cd90ca81b5102fb676360.tar.gz |
deps: patch V8 to 8.1.307.26
Refs: https://github.com/v8/v8/compare/8.1.307.20...8.1.307.26
PR-URL: https://github.com/nodejs/node/pull/32521
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/v8/test/unittests')
-rw-r--r-- | deps/v8/test/unittests/BUILD.gn | 1 | ||||
-rw-r--r-- | deps/v8/test/unittests/regress/regress-crbug-1056054-unittest.cc | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/deps/v8/test/unittests/BUILD.gn b/deps/v8/test/unittests/BUILD.gn index 37c2bdae02..ab407c2fe6 100644 --- a/deps/v8/test/unittests/BUILD.gn +++ b/deps/v8/test/unittests/BUILD.gn @@ -211,6 +211,7 @@ v8_source_set("unittests_sources") { "parser/preparser-unittest.cc", "profiler/strings-storage-unittest.cc", "regress/regress-crbug-1041240-unittest.cc", + "regress/regress-crbug-1056054-unittest.cc", "regress/regress-crbug-938251-unittest.cc", "run-all-unittests.cc", "strings/char-predicates-unittest.cc", diff --git a/deps/v8/test/unittests/regress/regress-crbug-1056054-unittest.cc b/deps/v8/test/unittests/regress/regress-crbug-1056054-unittest.cc new file mode 100644 index 0000000000..4478e9f94d --- /dev/null +++ b/deps/v8/test/unittests/regress/regress-crbug-1056054-unittest.cc @@ -0,0 +1,26 @@ +// Copyright 2020 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "src/execution/isolate.h" +#include "src/heap/factory.h" +#include "test/unittests/test-utils.h" + +namespace v8 { +namespace internal { + +using EnumIndexOverflowTest = TestWithNativeContextAndZone; + +TEST_F(EnumIndexOverflowTest, GlobalObject) { + Handle<GlobalDictionary> dictionary( + isolate()->global_object()->global_dictionary(), isolate()); + dictionary->set_next_enumeration_index( + PropertyDetails::DictionaryStorageField::kMax); + Handle<Object> value(Smi::FromInt(static_cast<int>(42)), isolate()); + Handle<Name> name = factory()->InternalizeUtf8String("eeeee"); + JSObject::AddProperty(isolate(), isolate()->global_object(), name, value, + NONE); +} + +} // namespace internal +} // namespace v8 |