v8/test/intl/regress-8725514.js
Sathya Gunasekaran 7e9ce60d08 [Intl] Use JSObject with null proto to prevent side effects
Previously, we created a JSObject with a non null prototype for an
internal object which isn't what we want as it casues side effects.

Bug: chromium:872514
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: I3318044a03318f3d7099f3ba889450c651cea9e1
Reviewed-on: https://chromium-review.googlesource.com/1171186
Reviewed-by: Adam Klein <adamk@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55062}
2018-08-10 18:37:41 +00:00

11 lines
295 B
JavaScript

// Copyright 2018 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.
Object.prototype.__defineGetter__('x', function () {
return -2147483648;
});
var f = ["x-u-foo"];
Intl.NumberFormat(f);