ea2cb139d6
A mistake in a recent CL has messed up the error messages for strong object semantics. BUG= LOG=N Review URL: https://codereview.chromium.org/1166433007 Cr-Commit-Position: refs/heads/master@{#28741}
12 lines
327 B
JavaScript
12 lines
327 B
JavaScript
// Copyright 2015 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: --strong-mode
|
|
|
|
"use strong";
|
|
|
|
let o = {};
|
|
Object.defineProperty(o, "foo", { writable: true });
|
|
Object.defineProperty(o, "foo", { writable: false });
|