c082b74c96
SetProperty now infers the language mode from the closure and the context So we no longer have to pass around the language mode. Cleanup by removing the parameter where it is no longer needed. Bug: v8:8580 Change-Id: I89452b5a762eb48a911f158d22c7bfa9e3bb1be4 Reviewed-on: https://chromium-review.googlesource.com/c/1421840 Commit-Queue: Mythri Alle <mythria@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Reviewed-by: Georg Neis <neis@chromium.org> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/master@{#59089}
20 lines
436 B
JavaScript
20 lines
436 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.
|
|
|
|
// Flags: --allow-natives-syntax --enable-slow-asserts
|
|
|
|
var arr = [];
|
|
var str = new String('x');
|
|
|
|
function f(a,b) {
|
|
a[b] = 1;
|
|
}
|
|
|
|
f(arr, 0);
|
|
f(str, 0);
|
|
f(str, 0);
|
|
|
|
// This is just to trigger elements validation, object already broken.
|
|
%SetKeyedProperty(str, 1, 'y');
|