2016-05-27 16:37:42 +02:00
|
|
|
// 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.
|
|
|
|
|
2022-09-21 13:28:42 +02:00
|
|
|
// Flags: --allow-natives-syntax --always-turbofan
|
2016-05-27 16:37:42 +02:00
|
|
|
|
2016-09-06 22:49:51 +02:00
|
|
|
function f() {
|
2017-02-14 11:27:26 +01:00
|
|
|
var obj = Object.freeze({});
|
|
|
|
%_CreateDataProperty(obj, "foo", "bar");
|
2016-09-06 22:49:51 +02:00
|
|
|
}
|
|
|
|
|
2016-12-23 16:30:57 +01:00
|
|
|
// Should not crash
|
2017-02-14 11:27:26 +01:00
|
|
|
assertThrows(f, TypeError);
|