blob: 10d3477160ccd140280c4b219e91f382cd8a494c [file] [log] [blame]
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-operations-on-objects
description: The "new.target" value within a static initialization block is undefined
info: |
2.1.1 EvaluateStaticBlock ( receiver , blockRecord )
1. Assert: Type(receiver) is Object.
2. Assert: blockRecord is a ClassStaticBlockDefinition Record.
3. Perform ? Call(blockRecord.[[Body]], receiver).
features: [class-static-block]
---*/
var value = null;
class C {
static {
value = new.target;
}
}
assert.sameValue(value, undefined);