2019-09-19 03:48:57 +00:00
|
|
|
// Copyright 2019 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-04-28 14:22:23 +00:00
|
|
|
// Flags: --always-turbofan
|
2019-09-19 03:48:57 +00:00
|
|
|
|
|
|
|
"use strict";
|
|
|
|
var __v_0 = {};
|
|
|
|
try {
|
|
|
|
__v_0 = this;
|
|
|
|
Object.freeze(__v_0);
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
}
|
|
|
|
|
|
|
|
function f() {
|
|
|
|
x = { [Symbol.toPrimitive]: () => FAIL };
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
f()
|
|
|
|
} catch (e) { }
|
|
|
|
assertThrows(() => f(), ReferenceError);
|