4f374bbc94
The ECMA 402 implementation previously pushed directly to real Arrays, which risks having observably incorrect behavior in the presence of monkey patching. This patch uses InternalArrays instead to avoid that hazard. R=jshin@chromium.org,yangguo@chromium.org BUG=chromium:604299 LOG=N Review-Url: https://codereview.chromium.org/1923803002 Cr-Commit-Position: refs/heads/master@{#35949}
10 lines
317 B
JavaScript
10 lines
317 B
JavaScript
// Copyright 2016 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.
|
|
|
|
Array.prototype.__defineSetter__(0,function(value){});
|
|
|
|
if (this.Intl) {
|
|
var o = new Intl.DateTimeFormat('en-US', {'timeZone': 'Asia/Katmandu'})
|
|
}
|