2017-05-02 10:50:00 +02:00
|
|
|
// Copyright 2017 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
|
|
|
|
|
|
|
|
let success = false;
|
|
|
|
function f() {
|
2017-09-12 11:34:59 +02:00
|
|
|
success = (f.caller === null);
|
2017-05-02 10:50:00 +02:00
|
|
|
}
|
|
|
|
Promise.resolve().then(f);
|
2019-03-12 09:01:49 +01:00
|
|
|
%PerformMicrotaskCheckpoint();
|
2017-05-02 10:50:00 +02:00
|
|
|
assertTrue(success);
|