51073d5f40
The i18n.js code was calling a lot of methods, which might have been removed or replaced by user code. Make sure we use the original functions. BUG=v8:4220 LOG=N R=adamk, littledan CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1199813004 Cr-Commit-Position: refs/heads/master@{#29268}
12 lines
456 B
JavaScript
12 lines
456 B
JavaScript
// Copyright 2014 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.
|
|
|
|
assertEquals('', ''.normalize());
|
|
assertTrue(delete Array.prototype.indexOf);
|
|
assertEquals('', ''.normalize());
|
|
|
|
assertThrows(function() { ''.normalize('invalid'); }, RangeError);
|
|
assertTrue(delete Array.prototype.join);
|
|
assertThrows(function() { ''.normalize('invalid'); }, RangeError);
|